Virtual Host configuration

Discussion in 'Apache' started by unarcher, Jul 20, 2012.

  1. #1
    HiMy Hosting provider configured Apache for a VirtualHost which is configured to provide access to a website for any request on any IP or any name on port 80.I was asked to add another Virtual Host to provider access to a mobile website which should be on same machine but I did not succeed to make it work as I want.First virtual host should still answer to any request other than request for http://m.mydomain.comIt should respond to www.mydomain.com test.mydomain.com and so onHere is actual configuration ServerAdmin webmaster@localhost DocumentRoot /local/www/feuillatte Options FollowSymLinks AllowOverride None Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all #FastCgiExternalServer /local/www/cgi-bin/php5.external -socket /local/www/.socks/feuillatte.sock #Alias /cgi-bin/ /local/www/feuillatte/cgi-bin Options SymLinksIfOwnerMatch AllowOverride All Order allow,deny allow from all # Possible values include: debug, info, notice, warn, error, crit, # alert, emerg. LogLevel warn CustomLog /var/log/apache2/access.log combined #modif Nico Options SymLinksIfOwnerMatch#modif NicoOrder allow,denyAllow from all I tried to add this, but not doing betterNameVirtualHost * ServerAdmin webmaster@localhost ServerName m.nicolas-feuillatte.com # Indexes + Directory Root. DocumentRoot /local/home/lebureau/mobile Options SymLinksIfOwnerMatch AllowOverride All Order allow,deny allow from all # Logfiles ErrorLog /var/log/apache2/error.log
     
    unarcher, Jul 20, 2012 IP