#1  
Old 29th July 2010, 15:17
YamiHoshi YamiHoshi is offline
Junior Member
 
Join Date: Jul 2010
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default Sites not working

I've installed my Server using this: http://www.howtoforge.com/installing...-on-centos-5.2
I'm using CentOS 5.5, thought.
Next, I've configured /etc/httpd/conf/httpd.conf, so I could host multiple sites (aka, VirtualHost), nothing else has been changed.
Code:
### Section 3: Virtual Hosts
#
# VirtualHost: If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at
# <URL:http://httpd.apache.org/docs/2.2/vhosts/>
# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.

#
# Use name-based virtual hosting.
#
NameVirtualHost *:80
#
# NOTE: NameVirtualHost cannot be used without a port specifier
# (e.g. :80) if mod_ssl is being used, due to the nature of the
# SSL protocol.
#

#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for requests without a known
# server name.
#
<VirtualHost *:80>
    ServerName www.yamihoshi.nl
    ServerAlias yamihoshi.nl
    DocumentRoot /home/yamihoshi.nl
    Options MultiViews FollowSymLinks
    Options MultiViews IncludesNoExec FollowSymLinks
    Options +Includes
</VirtualHost>

<VirtualHost *:80>
    ServerName www.mariokartcw.org
    ServerAlias mariokartcw.org
    DocumentRoot /home/mariokartcw.org
    Options MultiViews FollowSymLinks
    Options MultiViews IncludesNoExec FollowSymLinks
    Options +Includes
</VirtualHost>

<VirtualHost *:80>
    ServerName www.woondroomgoes.nl
    ServerAlias woondroomgoes.nl
    DocumentRoot /home/woondroomgoes.nl
    Options MultiViews FollowSymLinks
    Options MultiViews IncludesNoExec FollowSymLinks
    Options +Includes
</VirtualHost>
But if I go to one of these sites, I can get either a "404 - Not Found", or a dead link.
At the first few minutes, it seemed that one of them could view "index.html", but nothing else.
So, what am I doing wrong?
And, how to solve it?

Update1:
The vHost part is solved, using lighttpd.conf.
Now I get 403 - Forbidden messages.

Update2:
403 errours solved.
Just done this in the /home directory:
chown -R lighttpd:lighttpd *

Update3:
Problem not solved.

Last edited by YamiHoshi; 30th July 2010 at 15:30.
Reply With Quote
  #2  
Old 30th July 2010, 15:40
YamiHoshi YamiHoshi is offline
Junior Member
 
Join Date: Jul 2010
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Now I see, if I go back to the original hoster, the sites also don't work.
If I go to my other VPS, they also don't work.

Now I'm totally lost.
Could someone help me?

Update1:
After "ps aux | less", I see Lighttpd isn't running at all.
However though I've started it successfully for a billion times already.
So, how to start it, so it's really started?

Update2:
After the command "lighttpd -f /etc/lighttpd/lighttpd.conf", no errours showed up.
Now what?

Last edited by YamiHoshi; 30th July 2010 at 16:07.
Reply With Quote
  #3  
Old 30th July 2010, 19:43
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 34,527
Thanks: 1,048
Thanked 1,811 Times in 1,711 Posts
Default

Quote:
Originally Posted by YamiHoshi View Post
Next, I've configured /etc/httpd/conf/httpd.conf, so I could host multiple sites (aka, VirtualHost), nothing else has been changed.
/etc/httpd/conf/httpd.conf belongs to Apache, not Lighttpd, so I guess you have Apache running. What's the output of
Code:
netstat -tap
?
__________________
Falko
--
Follow me on:
Reply With Quote
  #4  
Old 30th July 2010, 19:48
YamiHoshi YamiHoshi is offline
Junior Member
 
Join Date: Jul 2010
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I already said I found that out already.
I'm now trying Debian on that VPS, so this thread is no longer usable.
But it will be, if Debian fails on MySQL, again.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sites stopped working Toucan Installation/Configuration 21 3rd January 2010 23:27
Virtual Hosted Sites Not Working (Vhosts_ispconfig.conf emtpy!) spike Installation/Configuration 1 15th August 2009 12:50
php sites not working on SLES_x64_SP2 ipraid Installation/Configuration 2 7th November 2008 13:25
Help - virtual sites - email not working - what FQDN? sagor Installation/Configuration 4 26th April 2008 19:00
php on sites not working - fresh install matej Installation/Configuration 2 29th June 2007 19:01


All times are GMT +2. The time now is 09:21.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Sponsored Links: Turn your desk phone and mobile phone into one with Sprint Mobile Integration.
www.seamlessenterprise.com

One number. One voicemail. Seize the lead. Sprint Mobile Integration.
www.seamlessenterprise.com

One Number. One Voicemail.
Make it easier for clients to reach you. Turn your desk phone and mobile phone into one with Sprint Mobile Integration.
www.seamlessenterprise.com

One number. One voicemail. Sprint Mobile Integration.
www.seamlessenterprise.com

One number. one voicemail. Seize the lead with Sprint. Learn more

AT&T Synaptic Compute as a Service. Boost your power on demand.

Trial: IBM Cognos Express Reporting, Analysis & Planning

Learn benefits of Simpana software.
View the Gartner Video

Sprint 4G - The Ultimate Mobile Broadband
Click here

SAP-Business Objects Crystal Reports Server
Complete reporting without hidden costs. Free Trial