PCHomepage
Programmer
I've done this many times both on WAMP and LAMP where I am accessing development sites from within the same system but now I am setting up a LAMP test server (Ubuntu Server 12.10 64bit) that I need to be able to access from other computers on the network and I am not sure what to use for the hosts IP for each site. There is also Apache2 server running on another PC with the 127.0.0.X range but if I use one of these here, then try to access it remotely, it simply shows the other Apache.
I also tried another IP address but, of course, the DNS fails to resolve. In the /etc/apache2/sites-available/domain I have:
But there seems to be another place containing VirtualHost information at /etc/apache2/conf.d/domain.conf with:
but changes to the latter seem to be ineffective so it is redundant? Which IP should I use?
I also tried another IP address but, of course, the DNS fails to resolve. In the /etc/apache2/sites-available/domain I have:
Code:
<VirtualHost 10.0.0.20:80>
DocumentRoot /var/[URL unfurl="true"]www/domain/[/URL]
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/[URL unfurl="true"]www/domain/>[/URL]
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
ServerAlias [URL unfurl="true"]http://test.domain.com[/URL]
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 ${APACHE_LOG_DIR}/error.log
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
But there seems to be another place containing VirtualHost information at /etc/apache2/conf.d/domain.conf with:
Code:
<VirtualHost 10.0.0.20:80>
Options Indexes
DocumentRoot /var/[URL unfurl="true"]www/domain[/URL]
DirectoryIndex index.php
ServerName test.domain.com
ErrorLog /var/log/apache2/error.log
</VirtualHost>
but changes to the latter seem to be ineffective so it is redundant? Which IP should I use?