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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
|
11-10-2009, 07:45 AM
|
#16
|
LQ Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,204
|
You should take a look at the apache error.log to see why you get the Forbidden error.
|
|
|
11-10-2009, 08:07 AM
|
#17
|
Member
Registered: Nov 2009
Location: Baton Rouge, Louisiana
Distribution: Ubuntu
Posts: 57
Original Poster
Rep:
|
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.
|
|
|
11-10-2009, 08:24 AM
|
#18
|
LQ Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,204
|
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...
|
|
|
11-10-2009, 01:02 PM
|
#19
|
Member
Registered: Nov 2009
Location: Baton Rouge, Louisiana
Distribution: Ubuntu
Posts: 57
Original Poster
Rep:
|
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.
|
|
|
11-10-2009, 01:06 PM
|
#20
|
Member
Registered: Nov 2009
Location: Baton Rouge, Louisiana
Distribution: Ubuntu
Posts: 57
Original Poster
Rep:
|
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.
|
|
|
11-10-2009, 02:52 PM
|
#21
|
LQ Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,204
|
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>
|
|
|
11-10-2009, 05:02 PM
|
#22
|
Member
Registered: Nov 2009
Location: Baton Rouge, Louisiana
Distribution: Ubuntu
Posts: 57
Original Poster
Rep:
|
Hi,
Thanks soooo much, it worked like a charm!
Thanks for the replies and keeping your cool with me .
Again, thanks soooooo much!
-Michael.
|
|
|
All times are GMT -5. The time now is 07:27 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|