virtual-hosts

WAMP Server virtual hosts configuration

心已入冬 提交于 2019-11-29 16:31:01
问题 OK, I have my wamp installed and simply can't setup my virtual hosts properly. Here's what I have: Wamp install dir: F:\wamp Projects dir: F:\www # F:\wamp\bin\apache\apache2.4.2\conf\extra\httpd-vhosts.conf <Directory "F:\www"> AllowOverride AuthConfig FileInfo Indexes Limit Options Order Deny,Allow AllowOverride All Allow from all </Directory> NameVirtualHost 127.0.0.1 <VirtualHost 127.0.0.1> ServerName localhost DocumentRoot "F:\wamp\www" </VirtualHost> # Yes, it's a symfony2 project

Different VirtualHosts with the same port

我与影子孤独终老i 提交于 2019-11-29 02:18:54
问题 I need to have two VirtualHosts with the same listen port for different projects and with different logs. Here's what I've got: <VirtualHost *:80> DocumentRoot /home/projects/smk ErrorLog /var/log/apache2/smk-error.log RedirectMatch ^/$ /cms </VirtualHost> <VirtualHost *:80> DocumentRoot /home/projects/smk/cms ErrorLog /var/log/apache2/smk-cms-error.log </VirtualHost> <VirtualHost *:80> DocumentRoot /home/projects/smk/deploy ErrorLog /var/log/apache2/smk-deploy-error.log </VirtualHost> 回答1:

Need help setting up: Apache Reverse Proxy

允我心安 提交于 2019-11-27 18:43:57
问题 I have some trouble setting my virtualhosts file up the right way. I'd like to send vistors to the right server by using reverse proxy. My current setup gives me an internal error. i have only 1 public ip and want to proxy the visitor on the condition of the right servername to one of the local virtual servers. NameVirtualHost *:80 <VirtualHost *:80> ServerName sub.domain.com ServerAdmin me@domain.com ProxyPreserveHost On ProxyPass / http://192.168.1.11:80 ProxyPassReverse / http://192.168.1