Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject:
PostPosted: Wed Dec 14, 2011 3:08 pm 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
Checkout http://httpd.apache.org/docs/2.2/mod/co ... irtualhost you put the ip in the virtualhost instead of * you also will want to check out if it's listening on the ip which is in /etc/apache2/ports.conf i.e. Listen 72.14.179.185:80 and NameVirtualHost 72.14.179.185:80

_________________
Paid support
How to ask for help
1. Give details of your problem
2. Post any errors
3. Post relevant logs.
4. Don't hide details i.e. your domain, it just makes things harder
5. Be polite or you'll be eaten by a grue


Top
   
 Post subject:
PostPosted: Wed Dec 14, 2011 3:21 pm 
Offline
Senior Newbie

Joined: Mon Dec 12, 2011 11:13 am
Posts: 14
I see another clue in the contents of ports.conf, specifically about having to do certain things when upgrading from Etch:

# 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). See /usr/share/doc/apache2.2-common/NEWS.Debian.gz and
# README.Debian.gz

NameVirtualHost *:80
Listen 80

<IfModule mod_ssl.c>
# If you add NameVirtualHost *:443 here, you will also have to change
# the VirtualHost statement in /etc/apache2/sites-available/default-ssl
# to <VirtualHost *:443>
# Server Name Indication for SSL named virtual hosts is currently not
# supported by MSIE on Windows XP.
Listen 443
</IfModule>

<IfModule mod_gnutls.c>
Listen 443
</IfModule>


Top
   
 Post subject:
PostPosted: Wed Dec 14, 2011 3:57 pm 
Offline
Senior Newbie

Joined: Mon Dec 12, 2011 11:13 am
Posts: 14
So far, I'm stumped. It might make more sense for me to start at the beginning with a new Squeeze profile, and get the web sites up and running before doing anything else.

Thanks again!


Top
   
 Post subject:
PostPosted: Thu Dec 15, 2011 4:45 pm 
Offline
Senior Newbie

Joined: Mon Dec 12, 2011 11:13 am
Posts: 14
OK, I got the virtual server working! (I had neglected to restart and reload the apache server. I think that was the problem. I also carefully followed the steps outlined at http://library.linode.com/web-servers/a ... al-hosting)

I do have a question: when I did reload the server, I got these warnings:

root@everything:~# /etc/init.d/apache2 restart
Restarting web server: apache2apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
[Thu Dec 15 15:35:30 2011] [warn] NameVirtualHost *:80 has no VirtualHosts
... waiting apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
[Thu Dec 15 15:35:32 2011] [warn] NameVirtualHost *:80 has no VirtualHosts
.

I'm not quite sure what the warning means. I do see content from the web site in my browser now, so I know it's working.

- Chris


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group