...work for myself so I am trying to save a few bucks per month on web-hosting fees by hosting a few sites at work myself.
I removed NameVirtualHost *:80 & ServerName rtrip.net from apache2.conf and remade the sites-available files with basic settings in the files so I took out a lot of the...
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...
...change anything? I also made the changes you mentioned to apache2.conf.
# rtrip.net (/etc/apache2/sites-available/www.rtrip.net)
#
<VirtualHost *:80>
ServerAdmin webldamin@rtrip.net
ServerName rtrip.net
ServerAlias www.rtrip.net, *.rtrip.net
# Indexes +...
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.
...upgraded from before 2.2.9-3 (i.e. from
# Debian etch). See /usr/share/doc/apache2.2-common/NEWS.Debian.gz and
# README.Debian.gz
NameVirtualHost *:80
Listen 80
<IfModule mod_ssl.c>
# SSL name based virtual hosts are not yet supported, therefore no
# NameVirtualHost statement here...
...for many
# of the server's control files begin with "/" (or "drive:/" for Win32), the
# server will use that explicit path. If the filenames do *not* begin
# with "/", the value of ServerRoot is prepended -- so "/var/log/apache2/foo.log"
# with ServerRoot set to "" will be interpreted by the...
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...
...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
[Sat Jul 04 22:05:08 2009] [warn] NameVirtualHost *:80 has no VirtualHosts
I've already ripped out my hair. I'm looking for a...
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.