| php Programming Glossary: virtualhostHow do I run Django and PHP together on one Apache server? http://stackoverflow.com/questions/1020390/how-do-i-run-django-and-php-together-on-one-apache-server  C django_proj Order Deny Allow Allow from all Directory VirtualHost 80 DocumentRoot C django_proj ServerName localhost VirtualHost.. 80 DocumentRoot C django_proj ServerName localhost VirtualHost VirtualHost 80 DocumentRoot C web ServerName php.localhost VirtualHost.. C django_proj ServerName localhost VirtualHost VirtualHost 80 DocumentRoot C web ServerName php.localhost VirtualHost My.. 
 Make XAMPP/Apache serve file outside of htdocs [closed] http://stackoverflow.com/questions/1408/make-xampp-apache-serve-file-outside-of-htdocs  conf extra httpd vhosts.conf. Un comment line 19 NameVirtualHost 80 . Add your virtual host ~line 36 VirtualHost 80 DocumentRoot.. 19 NameVirtualHost 80 . Add your virtual host ~line 36 VirtualHost 80 DocumentRoot C Projects transitCalculator trunk ServerName.. trunk Order allow deny Allow from all Directory VirtualHost Open your hosts file C Windows System32 drivers etc hosts ... 
 PHP $_SERVER['HTTP_HOST'] vs. $_SERVER['SERVER_NAME'], am I understanding the man pages correctly? http://stackoverflow.com/questions/1459739/php-serverhttp-host-vs-serverserver-name-am-i-understanding-the-ma  in my case and varies depending on a few directives 1 VirtualHost 2 ServerName 3 UseCanonicalName etc. _SERVER 'HTTP_HOST' is.. 
 How can I have CodeIgniter load specific pages using SSL? http://stackoverflow.com/questions/1500527/how-can-i-have-codeigniter-load-specific-pages-using-ssl  'base_url' https www.yoursite.com Then in your non ssl VirtualHost folder set your config to redirect protected pages by folder.. 
 Create subdomain upon user registration http://stackoverflow.com/questions/1841006/create-subdomain-upon-user-registration  like the following and restart your webserver NameVirtualHost 80 VirtualHost 80 DocumentRoot abs path to webroot ServerName.. following and restart your webserver NameVirtualHost 80 VirtualHost 80 DocumentRoot abs path to webroot ServerName domainname.com.. All  Order allow deny  Allow from all Directory VirtualHost then in php you can see which subdomain the user is requesting.. 
 HTTP_HOST vs. SERVER_NAME http://stackoverflow.com/questions/2297403/http-host-vs-server-name  You need to set UseCanonicalName directive to on in the VirtualHost entry in httpd.conf also check the warning at the bottom of.. also check the warning at the bottom of the document . VirtualHost ServerName example.com UseCanonicalName on VirtualHost This.. . VirtualHost ServerName example.com UseCanonicalName on VirtualHost This worked for me. Summarized SERVER_NAME is more reliable.. 
 How to enable and use HTTP PUT and DELETE with Apache2 and PHP? http://stackoverflow.com/questions/2934554/how-to-enable-and-use-http-put-and-delete-with-apache2-and-php  want to build a RESTful API in PHP on Apache2. In my VirtualHost directive I say Directory AllowOverride All Limit GET HEAD POST.. 
 Create Subdomains on the fly with .htaccess (PHP) http://stackoverflow.com/questions/586129/create-subdomains-on-the-fly-with-htaccess-php  the ServerAlias DOCs directive. An example vhost container VirtualHost 80 ServerName server.example.org ServerAlias .example.org UseCanonicalName.. ServerAlias .example.org UseCanonicalName Off VirtualHost 3. Work out which subdomain you are on in PHP Then in your PHP.. 
 OpenSSL not working on Windows http://stackoverflow.com/questions/15558321/openssl-not-working-on-windows  E wamp php extras in apache config Copied openssl.cnf to virtualhost public_html pointed to that and still get same errors Nothing.. 
 How to properly handle international character in PHP / MySQL / Apache http://stackoverflow.com/questions/1728746/how-to-properly-handle-international-character-in-php-mysql-apache  the apache AddDefaultCharset directive. This can go to the virtualhost or the general file see documentation . AddDefaultCharset utf.. 
 error_log per Virtual Host? http://stackoverflow.com/questions/176/error-log-per-virtual-host  separate php error_logs for each Virtual Host  php apache virtualhost   share improve this question   To set the Apache not the PHP.. 
 Create subdomain upon user registration http://stackoverflow.com/questions/1841006/create-subdomain-upon-user-registration  together or know where I can find my answers  php apache virtualhost   share improve this question   Can you tell apache to read.. 
 Connecting to remote MySQL server using PHP http://stackoverflow.com/questions/1935314/connecting-to-remote-mysql-server-using-php  to connect to a remote MySQL server from my local machine virtualhost using the following code conn mysql_connect dbhost dbuser dbpass.. 
 PHP - a different open_basedir per each virtual host http://stackoverflow.com/questions/2781185/php-a-different-open-basedir-per-each-virtual-host  variable to that path. Thank in advance Lopoc  apache virtualhost php open basedir   share improve this question   It is possible.. 
 So eclipse and xdebug walk into a bar, and then my apache server dies http://stackoverflow.com/questions/4509245/so-eclipse-and-xdebug-walk-into-a-bar-and-then-my-apache-server-dies  x86 eclipse php and xdebug running on localhost as both a virtualhost and an https virtualhost eclipse version info Eclipse for PHP.. running on localhost as both a virtualhost and an https virtualhost eclipse version info Eclipse for PHP Developers Version Helios.. 
 PHP - Protecting digital Downloads http://stackoverflow.com/questions/5412328/php-protecting-digital-downloads  you the file can be located whenever you want outside the virtualhost . Otherwise you can just implement a simple file download.php.. 
 Does php have an equivalent to python's virtualenv or ruby's sandbox? http://stackoverflow.com/questions/7182176/does-php-have-an-equivalent-to-pythons-virtualenv-or-rubys-sandbox  to that Specifically I'm hoping to be able to run one virtualhost on apache with one older version of php while everything else.. 
 |