Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 18th November 2009, 10:15
dodimar dodimar is offline
Junior Member
 
Join Date: Feb 2009
Location: Philippines
Posts: 24
Thanks: 2
Thanked 0 Times in 0 Posts
Default Override error 403 using .htaccess

Hi,

Was trying to create a folder where I can use .htaccess to require user to login to access the folder. I was able to create the .htaccess things. However, after logging in, ISPconfig spits out a ERROR 403 Forbidden!

Any way I can override this?

Thanks.
Reply With Quote
Sponsored Links
  #2  
Old 19th November 2009, 23:21
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,744 Times in 2,577 Posts
Default

Can you post the vhost configuration? Is there an index file in the web folder?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 20th November 2009, 00:33
dodimar dodimar is offline
Junior Member
 
Join Date: Feb 2009
Location: Philippines
Posts: 24
Thanks: 2
Thanked 0 Times in 0 Posts
Default

There are no index file in the web folder since I just want to put files on it that some users can access.

Will post the vhost config later, I can't ssh from our office.
Reply With Quote
  #4  
Old 20th November 2009, 09:00
dodimar dodimar is offline
Junior Member
 
Join Date: Feb 2009
Location: Philippines
Posts: 24
Thanks: 2
Thanked 0 Times in 0 Posts
Default

This is the vhost of that specific domain.

Code:
<Directory /var/www/domain.tld>
    AllowOverride None
    Order Deny,Allow
    Deny from all
</Directory>

<VirtualHost *:80>
    DocumentRoot /var/www/clients/client3/web9/web

    ServerName domain.tld
    ServerAlias *.domain.tld
    ServerAdmin webmaster@domain.tld

    ErrorLog /var/log/ispconfig/httpd/domain.tld/error.log

    ErrorDocument 400 /error/400.html
    ErrorDocument 401 /error/401.html
    ErrorDocument 403 /error/403.html
    ErrorDocument 404 /error/404.html
    ErrorDocument 405 /error/405.html
    ErrorDocument 500 /error/500.html
    ErrorDocument 503 /error/503.html

    <Directory /var/www/domain.tld/web>
        Options FollowSymLinks
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>
    <Directory /var/www/clients/client3/web9/web>
        Options FollowSymLinks
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>

    # suphp enabled
    <Directory /var/www/clients/client3/web9/web>
        suPHP_Engine on
        # suPHP_UserGroup web9 client3
        AddHandler x-httpd-suphp .php .php3 .php4 .php5
        suPHP_AddHandler x-httpd-suphp
    </Directory>


</VirtualHost>
Reply With Quote
  #5  
Old 20th November 2009, 13:47
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,744 Times in 2,577 Posts
Default

Quote:
Originally Posted by dodimar View Post
There are no index file in the web folder since I just want to put files on it that some users can access.
That's the problem. Either put an index file in the directory, or add Indexes to the Options directive of that vhost - see http://httpd.apache.org/docs/2.2/mod/core.html#options
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #6  
Old 21st November 2009, 01:17
dodimar dodimar is offline
Junior Member
 
Join Date: Feb 2009
Location: Philippines
Posts: 24
Thanks: 2
Thanked 0 Times in 0 Posts
 
Default

Okay.. got it now.. Thank you very much.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Newb: What's wrong with this .htaccess file please? Slowhand Installation/Configuration 6 10th July 2009 10:01
CRON and .htaccess problems devilslayer General 1 23rd November 2007 16:49
.htaccess Liac Server Operation 15 20th June 2007 15:19
wordpress MU and ISPconfig .htaccess isues palkat General 4 18th October 2006 11:57
.htaccess login challenge broken with mod_rewrite ozonblue Installation/Configuration 2 13th September 2006 10:09


All times are GMT +2. The time now is 09:56.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.