logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: I am having problems accessing my website on my Apache serve
Author
rlttharp



Joined: 04 Jul 2007
Posts: 12
Location: Chicago, IL Jonesboro, AR

PostPosted: Wed 05 Sep '07 0:54    Post subject: I am having problems accessing my website on my Apache serve Reply with quote

Hello All,

I have just created a virtual server inside my Apache server using webmin! I have an e-commerce site I am putting up. When I first put it up it was in the root directory and I had a problem with security which was solved. Now since I have moved it to the virtual area I have tis error log message: "[Tue Sep 04 18:02:09 2007] [error] [client 76.245.94.169] Directory index forbidden by Options directive: /var/www/html/" and this is the access log message that goes with it "76.245.94.169 - - [04/Sep/2007:17:59:01 -0500] "GET / HTTP/1.1" 403 3956" Also it just goes to the FedoraCore test page? I am a newbie to Linux and Apache so any help would be greatly appreciated. www.petestown.com
Rich
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7298
Location: Germany, Next to Hamburg

PostPosted: Wed 05 Sep '07 9:29    Post subject: Reply with quote

hello!
Inside your vhost, you have to set the permission for your vhost.

e.g.
Code:

<VirtualHost *:80>

    ServerAdmin you@your.tld
    DocumentRoot /var/www/html/
    ServerName petestown.com
    ServerAlias www.petestown.com
    ErrorLog /server2/logs/error.log
    CustomLog /server2/logs/access.log common

<Directory "/var/www/html/">

    Options Indexes FollowSymLinks
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>

</VirtualHost>


Secondly you should edit your /etc/httpd/conf.d/welcome.conf Wink
Because there is a redirect inside.
Back to top
rlttharp



Joined: 04 Jul 2007
Posts: 12
Location: Chicago, IL Jonesboro, AR

PostPosted: Wed 05 Sep '07 20:57    Post subject: Well I tried it! Reply with quote

Hi James thanks for the response! I tried it but no diffrence. I did not edit the welcome.conf it seems to be right from what I have read here is my config file for the httpd. Now the webmin created a name based virtual server when I installed it and its config file is /etc/httpd/conf.d/system-config-httpd.conf, where as the main server's config is /etc/httpd/conf/httpd.conf, I tried it in both places! here is what the files look like .
<VirtualHost *>
DocumentRoot "/home/petestown/public_html"
ServerName www.petestown.com
ServerAlias www.petestown.net
ServerAlias www.petestown.info
ServerAlias www.petestown.org
ServerAlias www.petestown.us
ServerAlias www.petestown.ws
ServerAlias www.petesboots.ws
ServerAlias www.petesboots.us
ServerAlias www.petesboots.com
ServerAlias www.petesboots.net
ServerAlias www.petesboots.org
ServerAlias www.petesboots.info
ServerAlias www.petesboots.biz
ServerAlias www.peteswesternwear.biz
ServerAlias www.peteswesternwear.ws
ServerAlias www.peteswesternwear.us
ServerAlias www.peteswesternwear.com
ServerAlias www.peteswesternwear.net
ServerAlias www.peteswesternwear.org
ServerAlias www.peteswesternwear.info
<Directory "/home/petestown/public_html">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
#allow from all
#Options +Indexes
</Directory>
<Directory "/home/petestown/public_html">
Options Indexes
</Directory>
</VirtualHost>

the welcome.config is
#
# This configuration file enables the default "Welcome"
# page if there is no default index page present for
# the root URL. To disable the Welcome page, comment
# out all the lines below.
#
<LocationMatch "^/+$">
Options -Indexes
ErrorDocument 403 /error/noindex.html
</LocationMatch>
any thoughts? I fooled with it all day and still have the same message?

Rich
Back to top


Reply to topic   Topic: I am having problems accessing my website on my Apache serve View previous topic :: View next topic
Post new topic   Forum Index -> Apache