Apache Question

1 view
Skip to first unread message

Néstor

unread,
Aug 23, 2010, 1:13:13 PM8/23/10
to professi...@googlegroups.com
Hi guys, I  know that my question is not about PHP but I am sure that you guys know the answer.

I have my httpd.conf file set up a follows:
--------------------------
<Directory "/home/www/sdcwa/public_html">

# Possible values for the Options directive are "None", "All",
    Options FollowSymLinks -Indexes
#
    AllowOverride None
#
# Controls who can get stuff from this server.
#
    Order allow,deny
    Allow from all
</Directory>
--------------------

When I got to "http://www.mypage.com/hr/" If there is no index.html file it get
-------------

Forbidden

You don't have permission to access /hr/ on this server.

-----------------------------


The scary part is that when I type  "file:///www.mypage.com/hr/" it gives me a listing

Is this normal?

How do I stop the Directory from listing?


Thanks

Rotsen  :-)

Robert Gonzalez

unread,
Aug 23, 2010, 1:16:14 PM8/23/10
to professi...@googlegroups.com
So when your protocol changes from HTTP to FILE, even remotely, you get a directory listing instead of a prohibited?

--
This group is managed and maintained by the development staff at 360 PSG. An enterprise application development company utilizing open-source technologies for todays small-to-medium size businesses.
 
For information or project assistance please visit :
http://www.360psg.com
 
You received this message because you are subscribed to the Google Groups "Professional PHP Developers" group.
To post to this group, send email to Professi...@googlegroups.com
To unsubscribe from this group, send email to Professional-P...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/Professional-PHP

Néstor

unread,
Aug 23, 2010, 1:25:26 PM8/23/10
to professi...@googlegroups.com
YES!!

Well, I just notice that I made a mistake
Because I know where my DocumentRootDirectoy is locate I can type
file:///home/www/sdcwa/public_html/

Wait a minute
Is it because I am physically on the server that it shows the directory listing
even when I type "file:///"

I might had scared myself falsely.

Am I correct that when you are on the server and via the browser you type file:///
it will give you a directory listing?

Nestor

Robert Gonzalez

unread,
Aug 23, 2010, 1:40:56 PM8/23/10
to professi...@googlegroups.com
Generally speaking that is the case. If you are on the server and reference a FILE url, as long as your user has read permission, you will be granted permission to view that directory.

Néstor

unread,
Aug 23, 2010, 1:47:12 PM8/23/10
to professi...@googlegroups.com
Robert,

thanks a lot, I had a long night and all of a sudden I come to work and I see demons
where they are none.

Thanks again,

Nestor :-)
Reply all
Reply to author
Forward
0 new messages