Results 1 to 1 of 1
8.04 LTS NameVirtualHost *:80 not working
Ok I have probably read about 1000 threads over the past 5 years about virtual hosting with Ubuntu trying to get this solved. I ...
- 08-26-2011 #1Just Joined!
- Join Date
- Aug 2007
- Posts
- 7
8.04 LTS NameVirtualHost *:80 not working
8.04 LTS NameVirtualHost *:80 not working
Ok I have probably read about 1000 threads over the past 5 years about virtual hosting with Ubuntu trying to get this solved. I am not a newbie and have Virtual hosting working with
NameVirtualHost MYIPADDRESS:80.
However i am switching IPs on my main server after about 5 years and would like to get apache working with NameVirtualHost:* for obvious reasons.
I have tried several combinations of * and *:80 including various file locations ports.conf etc, but nothing other than MYIPADDRESS:80 seems to work. Probably missing something simple here but really really annoyed with this.
This is what i think should work!!!! NOTE the commented out lines make things work perfectly. added this to /etc/apache2/apache2.conf
NameVirtualHost *:80
#NameVirtualHost MYIPADDRESS:80
Added this to mywebsite.com.conf
<VirtualHost *:80>
#<VirtualHost MYIPADDRESS:80>
ServerName mywebsite.com
ServerAlias aliaswebsitedotcom
DocumentRoot /var/www/drupal
ErrorLog "|/etc/webmin/virtual-server/writelogs.pl 121504907918405 /home/mywebsite.com/logs/error_log"
CustomLog "|/etc/webmin/virtual-server/writelogs.pl 121504907918405 /home/mywebsite.com/logs/access_log" combined
<Directory /var/www/drupal>
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>


Reply With Quote