Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

.htaccess file and reported error

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  rotatelogs apache2 not found  
Author Message
x331591

External


Since: Jul 19, 2004
Posts: 17



(Msg. 1) Posted: Mon Jul 19, 2004 10:33 pm
Post subject: .htaccess file and reported error
Archived from groups: alt>apache>configuration (more info?)

[Apache2.0.48 on Suse 9.0]

I have under my directory /srv/www/htdocs a directory for test purposes
only.
In the default-server.conf I have these:

<directory "/srv/www/htdocs">
Allowoverride All
Order Deny, Allow
Allow from All
</directory>

Then in .htacces in area51 I have this:

<directory "/srv/www/htdocs/area51">
Order Allow,Deny
Deny from all
Allow from 10.0.0.150
</directory>

That ip address is my other machine's. However, regardless of what i specify
there I get a server error 500 when I try to access anything in that
directory, be it html or php. Once I remove the .htaccess file altogether I
can again see the contents of that directory.

I tried different orders, different settings in default-server.conf,
directly in httpd.conf but all to no avail.
Why is that and why do I get a 500 error and not a Forbidden ?

TIA
Pjotr

 >> Stay informed about: .htaccess file and reported error 
Back to top
Login to vote
user2874

External


Since: Jul 14, 2004
Posts: 24



(Msg. 2) Posted: Mon Jul 19, 2004 11:26 pm
Post subject: Re: .htaccess file and reported error [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Pjotr Wedersteers napisał(a):


 > Then in .htacces in area51 I have this:
 >
 > <directory "/srv/www/htdocs/area51">
 > Order Allow,Deny
 > Deny from all
 > Allow from 10.0.0.150
 > </directory>

..htaccess is a per-directory config file, so you don't have to
<directory> it.

Try just:

Order Allow,Deny
Allow from all
Deny from 10.0.0.150

just like that.

<a style='text-decoration: underline;' href="http://httpd.apache.org/docs-2.0/howto/htaccess.html" target="_blank">http://httpd.apache.org/docs-2.0/howto/htaccess.html</a>

--
Paweł Zdziarski
kontakt ze mną jedynie przez Jabbera:
fax3 _na_ chrome _kropka_ pl
fax3 _na_ jabberpl _kropka_ org<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: .htaccess file and reported error 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Use of htaccess file with Apache - Suppose I write an "Allow / Deny" rule in a htaccess and it resides in the root directory. If I write another "Allow / Deny" rule in another htaccess file in a sub-directory; 1) Would the server still access the htaccess file in r...

.htaccess file makes 403 - hi folks, i wrote a .htaccess file with the following content: RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteBase / RewriteRule ^typo3$ typo3/index_re.php RewriteRule ^[^/]*\.html$ index.php but when accessing this page, a 403..

Can htaccess include another file? - Hi, I want to achieve something like this. Imagine I have a file called textfile_ips.txt which contains a whole bunch of IP addresses which I want to blocked, one per line. Can I do something like this? <Files "somefile.html"> deny ...

UNIX + Windows htaccess in one file possible? - Hello! I use WAMP for developing and LAMP for hosting my website. Sometimes I need to password-protect certain directories. On the LAMP-Server I need to put AuthUserFile "/somepath/.htpasswd" into my htaccess file to point to the passwo...

DirectoryIndex, and other commands for the htaccess file??? - I'm on a shared host (Apache/RedHat), and I'm new with setting up various directories for my files. I've created an htaccess file in the root, and I've set up most of my web site files under "/httpdocs". Inside that htaccess file, I've added..
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]