ChrisRChamberlain, RhythmAce & Noway2, BIG THANX TO ALL OF YOU. IT NOW APPEARS TO BE WORKING - at least locally at home. I will test it from a different internet connection at work tomorrow but right now I can route to both site: rtrip.net and eltms.net.
Now I can remake the websites and move...
I tried to enter httpd -S but it said command not found.
I got rid of the ServerName directive as well in apache2.conf.
I didn't mention but I have a default-ssl file as well using port 443.
I found a website with someone having the same issue as mine:
Apache Virtual Hosts forwarding to...
To ChrisRChamberlain:
I tried the steps outlined in the article mentioned above but it still did not work and I could not route to rtrip.net as well.
I will back track and try it again just to make sure I didn't miss a step and post later.
Life is what you make it.
Ok changing a few items which I had changed already and now using two files in sites-available: default and eltms.net.
Default is for rtrip.net website and this now works fine.
Eltms.net seems to be connecting as I get no error in the browser but does not pull up the index page from eltms.net...
After putting both sites in one vhosts.conf file I am still getting the following error:
* Restarting web server apache2 [Tue Jul 07 23:11:26 2009] [error] VirtualHost *:80 -- mixing * ports...
RhythmAce - I followed your instructions and still cant route to both rtrip.net and eltms.net.
Does this vhosts.conf file below look correct or should I change anything? I also made the changes you mentioned to apache2.conf.
# rtrip.net (/etc/apache2/sites-available/www.rtrip.net)
#...
Response to ChrisRChamberlain:-
I removed NameVirtualHost *:80
ServerName rtrip.net
and got the following error:
* Reloading web server config apache2 [Tue Jul 07 22:27:02 2009] [error]...
Will try these suggestions and get back to the posting. I want to try to fix the issue without reinstalling Ubuntu so I can learn what to do if this should happen again.
I did a reload and restart of apache as asked above which usually brings up rtrip.net but that one time it would not and I...
Rtrip.net is now ok after reboot.
eltms.net -> Help.
If I liked MS I would be up and running with IIS. Wonder why linux/unix is so hard.
Life is what you make it.
And the contents of /etc/apache2/sites-enabled:
/etc/apache2/sites-enabled
Something must have gone wrong as I am now nat able to route to rtrip.net by name or ip addr.
Will reboot server to see if it is back online.
Life is what you make it.
And the contents of /etc/apache2/ports.conf:
# If you just change the port or add more ports here, you will likely also
# have to change the VirtualHost statement in
# /etc/apache2/sites-enabled/000-default
# This is also true if you have upgraded from before 2.2.9-3 (i.e. from
# Debian etch)...
Here is my /etc/apache2/apache2.conf:
#
# Based upon the NCSA server configuration files originally by Rob McCool.
#
# This is the main Apache server configuration file. It contains the
# configuration directives that give the server its instructions.
# See http://httpd.apache.org/docs/2.2/...
I have tried the vhosts in the same file and both files follow the same content as the second file as listed above by ChrisRChambelain.
I still am not able to route to eltms.net.
Here are the contents to /etc/apache2/sites-available:
-rw-r--r-- 1 root root 1010 2009-07-05 16:13 default...
Just to add, I am running Ubuntu 9.04 and have no other problems with the server.
When I enable eltms.net with a2ensite eltms.net it disables the default rtrip.net or if it doesn't then it routes eltms.net to rtrip.net/index.html so I never see eltms.net/index.html
Life is what you make it.
I have tried all the steps above and the links to other websites above.
I also have the new domain eltms.net pointed to my rtrip.net address via no-ip.com but I can't even route to it locally by ip address on my LAN.
Life is what you make it.
My current virtual host file for the second domain is:
#
# Eltms.net (/etc/apache2/sites-available/www.eltms.net)
#
<VirtualHost *:80>
ServerAdmin webldamin@rtrip.net
ServerName www.eltms.net
ServerAlias eltms.net
# Indexes + Directory Root...
Thanks for the tips above. Been busy but tried a number of changes today and still cannot get the 2nd site to work.
Rtrip.net works fine but eltms.net does not work.
When I restart Apache I get the following error:
[Sat Jul 04 22:05:08 2009] [warn] NameVirtualHost *:0 has no VirtualHosts...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.