LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-10-2009, 08:45 AM   #16
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,520

Rep: Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502

You should take a look at the apache error.log to see why you get the Forbidden error.
 
Old 11-10-2009, 09:07 AM   #17
lilmike
Member
 
Registered: Nov 2009
Location: Baton Rouge, Louisiana
Distribution: Ubuntu
Posts: 57

Original Poster
Rep: Reputation: 15
Question

Hi,
Here is the error it gives:
Quote:
[Tue Nov 10 13:39:09 2009] [error] [client 77.88.43.26] Directory index forbidden by Options directive: /websites/mtgames.org/public_html/
So it appears that the .shtml file is not being caught as an index file, even though I told it to.
That brings up a question, when I modify a virtual host file, it should be just fine to /etc/init.d/apache2 reload instead of restart, right?
-Michael.
 
Old 11-10-2009, 09:24 AM   #18
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,520

Rep: Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502
IIRC the debian way to enable a vhost, is to run
Code:
a2ensite www.domain.com
and then reload for apache to just read its configuration file.
Try both of them and see which one works...
 
Old 11-10-2009, 02:02 PM   #19
lilmike
Member
 
Registered: Nov 2009
Location: Baton Rouge, Louisiana
Distribution: Ubuntu
Posts: 57

Original Poster
Rep: Reputation: 15
Question

Hi,
Yes, I did a2ensite <site-file>, but I never did a2dissite <site-file> before I editted it, maybe that's a problem.
In any case, it's been a2ensite-ed for the last about 2 or 3 days, and I just modified the file today.
After I modify the file, I do /etc/init.d/apache2 reload to have it read the new config. Maybe I am supposed to do a2dissite before?
-Michael.
 
Old 11-10-2009, 02:06 PM   #20
lilmike
Member
 
Registered: Nov 2009
Location: Baton Rouge, Louisiana
Distribution: Ubuntu
Posts: 57

Original Poster
Rep: Reputation: 15
Exclamation

Hi,
Now I just had the brilliant idea to go directly to my index page, like this:
http://www.mtgames.org/index.shtml
It displays correctly, even parsing the ssi include!
That must mean that something is wrong with the catch for the index, seeing as it does not catch the .shtml file, but when I go to the index.shtml directly it allows me to view it, even putting in the ssi.
-Michael.
 
Old 11-10-2009, 03:52 PM   #21
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,520

Rep: Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502
Quote:
Now I just had the brilliant idea to go directly to my index page, like this:
http://www.mtgames.org/index.shtml
It displays correctly, even parsing the ssi include!
Yes, it's obvious that apache somehow does not recognize index.shtml as an index page.
You can add the "DirectoryIndex index.shtml" inside the vhost definition:
Code:
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot "/websites/mtgames.org/public_html"
ServerName www.domain.com
DirectoryIndex index.shtml
...
</VirtualHost>
 
Old 11-10-2009, 06:02 PM   #22
lilmike
Member
 
Registered: Nov 2009
Location: Baton Rouge, Louisiana
Distribution: Ubuntu
Posts: 57

Original Poster
Rep: Reputation: 15
Thumbs up

Hi,
Thanks soooo much, it worked like a charm!
Thanks for the replies and keeping your cool with me .
Again, thanks soooooo much!
-Michael.
 
  


Reply

Tags
parkprimus


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
apache update stopped processing shtml files, need some advice. sir-lancealot Linux - Server 2 08-08-2008 02:55 PM
shtml on apache2 jsheffie Linux - Software 3 09-08-2005 08:56 PM
HELP: Apache not recognizing new directories daveselinger Linux - Software 1 01-16-2005 11:54 AM
Redhat 9.0 not recognizing executable files BenRichards Linux - Software 2 09-17-2004 04:25 PM
PHP or SHTML? SE optimization linuxfond Linux - Newbie 2 06-15-2004 03:40 AM


All times are GMT -5. The time now is 12:21 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration