Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 22nd July 2008, 02:24
Code5 Code5 is offline
Member
 
Join Date: Jun 2008
Posts: 45
Thanks: 0
Thanked 1 Time in 1 Post
Question ISPConfig .htaccess problems.

Hi all, i seem to be having a problem with creating a .htaccess file so that i can let the public read and list directories and files within a site such as www.mydomain.com/files/

Every time i upload a .htaccess file it transfers then disappears. Its really stressing as ive tried this numerous times. I even used the ispconfig access control and it worked for the user/pass auth but then denied for directory and file listing.

Any ideas how i can solve this little problem?

Im running Ubuntu Server 8 and ISPConfig, setup using Ubuntu perfect server, etc etc.

Many thanks.
Reply With Quote
Sponsored Links
  #2  
Old 22nd July 2008, 07:22
Hans Hans is offline
Moderator
 
Join Date: Dec 2005
Location: Montfoort, The Netherlands
Posts: 2,256
Thanks: 212
Thanked 648 Times in 294 Posts
Default

After uploading the .htaccess file, it does not disappear, but it is hidden.

Make sure that the use of .htaccess files is allowed, by adding the following to the Apache directives field within ISPConfig for that site:
<Directory "/var/www/web#/web">
Options FollowSymLinks
AllowOverride All
</Directory>

Note: web# is the webnumber as created by ISPConfig.

Alternative:
Allow the use of .htaccess files on your server globaly, by changing AllowOverride None into AllowOverride All within your Apache configuration file.
Restart Apache afterwards.
__________________
Hans

MrHostman | Master in managed hosting
Reply With Quote
  #3  
Old 23rd July 2008, 03:28
Code5 Code5 is offline
Member
 
Join Date: Jun 2008
Posts: 45
Thanks: 0
Thanked 1 Time in 1 Post
Question Thanks

One last thing, lol, where would i locate the apache2 config file, and what is the name of the file?

Thanks.

Last edited by Code5; 23rd July 2008 at 04:13.
Reply With Quote
  #4  
Old 23rd July 2008, 08:21
Hans Hans is offline
Moderator
 
Join Date: Dec 2005
Location: Montfoort, The Netherlands
Posts: 2,256
Thanks: 212
Thanked 648 Times in 294 Posts
Default

On Debian it is /etc/apache2/apache2.conf but can be differenet on other Linux versions.
__________________
Hans

MrHostman | Master in managed hosting
Reply With Quote
The Following User Says Thank You to Hans For This Useful Post:
Been Told (18th January 2009)
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
Need help ISPConfig and NAT weird domain problems nightshade2109 Installation/Configuration 11 16th November 2006 14:49
Problems of security on ISPConfig misterm Installation/Configuration 6 26th October 2006 14:41
Users and websites aren't created Glorfindel Installation/Configuration 9 23rd February 2006 04:20
Problems installing ISPConfig Debian Sarge hschel Server Operation 4 22nd August 2005 19:46
Little problems setting up the ISPConfig Luciano Installation/Configuration 1 15th August 2005 20:17


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


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