skateoroma
October 14th, 2008, 08:03 PM
I've installed Ubuntu server 8.04 and LAMP on one machine and set up 2 virtual hosts by following the ApacheMySQLPHP documentation on ubuntu.com. I can browse the default site from another machine on the network, but I cannot browse the other site from within my local network. I would like to use this setup as a development/test server before I promote code to websites I design. The sites are hosted on a pay server and I tried to recreate the document root path on my local server. Can anyone please help with this? Thanks...
default
NameVirtualHost *
<VirtualHost *>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/vhosts/bovell-net.com/httpdocs/
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/vhosts/bovell-net.com/httpdocs/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog /var/log/apache2/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/access.log combined
ServerSignature On
Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>
</VirtualHost>
2nd Site: mahalalove.com
<VirtualHost *>
ServerAdmin webmaster@localhost
ServerName www.mahalalove.com
ServerAlias mahalalove.com *.mahalalove.com
DocumentRoot /var/www/vhosts/mahalalove.com/httpdocs/
</VirtualHost>
default
NameVirtualHost *
<VirtualHost *>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/vhosts/bovell-net.com/httpdocs/
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/vhosts/bovell-net.com/httpdocs/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog /var/log/apache2/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/access.log combined
ServerSignature On
Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>
</VirtualHost>
2nd Site: mahalalove.com
<VirtualHost *>
ServerAdmin webmaster@localhost
ServerName www.mahalalove.com
ServerAlias mahalalove.com *.mahalalove.com
DocumentRoot /var/www/vhosts/mahalalove.com/httpdocs/
</VirtualHost>