LinuxQuestions.org
Visit Jeremy's Blog.
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, 07:45 AM   #16
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,159
Blog Entries: 1

Rep: Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021

You should take a look at the apache error.log to see why you get the Forbidden error.
 
Old 11-10-2009, 08: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, 08:24 AM   #18
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,159
Blog Entries: 1

Rep: Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021
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, 01: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, 01: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, 02:52 PM   #21
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,159
Blog Entries: 1

Rep: Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021
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, 05: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 01:55 PM
shtml on apache2 jsheffie Linux - Software 3 09-08-2005 07:56 PM
HELP: Apache not recognizing new directories daveselinger Linux - Software 1 01-16-2005 10:54 AM
Redhat 9.0 not recognizing executable files BenRichards Linux - Software 2 09-17-2004 03:25 PM
PHP or SHTML? SE optimization linuxfond Linux - Newbie 2 06-15-2004 02:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:51 AM.

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
Open Source Consulting | Domain Registration