I have tried to read many FAQ's and websites but cannot get a second domain to work in Apache.
The first domain works fine at rtrip.net. The second one eltms.net does not work and keeps pulling up rtrip.net.
Here are my files for anyone who can help me.
In /etc/apache2/httpd.conf: I added NameVirtualHost *:80 at the end of the file.
In :/etc/apache2/sites-available: I created a new file called eltms.net and this is what I put in the file:
NameVirtualHost *:80
<VirtualHost *:80>
ServerAdmin webldamin@rtrip.net
DocumentRoot "/var/www"
ServerName ServerAlias rtrip.net
ErrorLog "/var/log/apache2/error.log"
CustomLog "/var/log/apache2/access.log" common
</VirtualHost>
<VirtualHost *:80>
ServerAdmin webldamin@rtrip.net
DocumentRoot "/var/ ServerName ServerAlias eltms.net
ErrorLog "/var/ CustomLog "/var/ common
</VirtualHost>
-------------------------
I enabled the site with a2ensite eltms.net and reloaded apache.
/etc/hosts:
127.0.0.1 localhost
127.0.0.1 rtrip.net
127.0.0.1 eltms.net
192.168.1.3 rtrip.net rtrip.net
127.0.1.1 rtrip.net
192.168.1.1 gateway
192.168.1.2 caslim.rtrip.lan caslim
192.168.1.4 crain.rtrip.lan crain
192.168.1.7 cbot.rtrip.lan
192.168.1.8 cnbot.rtrip.lan
192.168.1.14 ctrench.rtrip.lan ctrench
Can anyone help me to get eltms.net to serve it's own page that is different from rtrip.net? Thanks.
Life is what you make it.
The first domain works fine at rtrip.net. The second one eltms.net does not work and keeps pulling up rtrip.net.
Here are my files for anyone who can help me.
In /etc/apache2/httpd.conf: I added NameVirtualHost *:80 at the end of the file.
In :/etc/apache2/sites-available: I created a new file called eltms.net and this is what I put in the file:
NameVirtualHost *:80
<VirtualHost *:80>
ServerAdmin webldamin@rtrip.net
DocumentRoot "/var/www"
ServerName ServerAlias rtrip.net
ErrorLog "/var/log/apache2/error.log"
CustomLog "/var/log/apache2/access.log" common
</VirtualHost>
<VirtualHost *:80>
ServerAdmin webldamin@rtrip.net
DocumentRoot "/var/ ServerName ServerAlias eltms.net
ErrorLog "/var/ CustomLog "/var/ common
</VirtualHost>
-------------------------
I enabled the site with a2ensite eltms.net and reloaded apache.
/etc/hosts:
127.0.0.1 localhost
127.0.0.1 rtrip.net
127.0.0.1 eltms.net
192.168.1.3 rtrip.net rtrip.net
127.0.1.1 rtrip.net
192.168.1.1 gateway
192.168.1.2 caslim.rtrip.lan caslim
192.168.1.4 crain.rtrip.lan crain
192.168.1.7 cbot.rtrip.lan
192.168.1.8 cnbot.rtrip.lan
192.168.1.14 ctrench.rtrip.lan ctrench
Can anyone help me to get eltms.net to serve it's own page that is different from rtrip.net? Thanks.
Life is what you make it.