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

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 31st December 2005, 20:24
Sinisfun Sinisfun is offline
Member
 
Join Date: Dec 2005
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
Default Directory Browsing 403

I cant seem to be able to enable directory browsing for certain files. What I would like to do is create a folder in my web dir named pics and then have images in there. However when I browse to www.xxxx.tld/pics I get a 403 error from ispconfig. I changed permissions of the folder to 755 775 777 and still none of them work. Am I missing something here?

Thanks in advance for you help,

-Lee
Reply With Quote
Sponsored Links
  #2  
Old 1st January 2006, 13:06
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,421
Thanks: 834
Thanked 5,501 Times in 4,330 Posts
Default

Please have a look at your httpd.conf (can be also apache.conf or apache2.conf). At the end of the file you will find this:

<Directory /home/www/*/web>
Options +Includes +FollowSymlinks -Indexes
AllowOverride Indexes AuthConfig Limit FileInfo
Order allow,deny
Allow from all

<Files ~ "^\.ht">
Deny from all
</Files>
</Directory>

There you must change the line:

Options +Includes +FollowSymlinks -Indexes

to:

Options +Includes +FollowSymlinks +Indexes

to enable directory browsing. If you dont want to enable directory browsing for the whole server, you can put an .htaccess file in your pics directory with the line:

Options +Indexes
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
The Following User Says Thank You to till For This Useful Post:
bowlAltetle (25th July 2014)
  #3  
Old 2nd January 2006, 01:43
Sinisfun Sinisfun is offline
Member
 
Join Date: Dec 2005
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
Default

When I do the .htaccess method in the pics folder, I now get a 500 internal server error. This is the method I would like to use as there are dirs that I would rather not have browsable. Any ideas as to what may cause this?
Reply With Quote
  #4  
Old 2nd January 2006, 09:00
Sinisfun Sinisfun is offline
Member
 
Join Date: Dec 2005
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I was able to resolve this.... I was using coreftp and I was placing a .htaccess file in the folder I wanted to list files from, however there was an .htaccess file in the "Web" dir and I believe my pics was inheriting its permissions. I deleted that file and now it list the files.

Thanks for pointing me in the right direction
Reply With Quote
  #5  
Old 29th March 2008, 02:51
greenpete greenpete is offline
Member
 
Join Date: Feb 2008
Location: Cotswolds
Posts: 51
Thanks: 20
Thanked 1 Time in 1 Post
Send a message via Yahoo to greenpete
Default

Quote:
Originally Posted by till
Please have a look at your httpd.conf (can be also apache.conf or apache2.conf). At the end of the file you will find this:

<Directory /home/www/*/web>
Options +Includes +FollowSymlinks -Indexes
AllowOverride Indexes AuthConfig Limit FileInfo
Order allow,deny
Allow from all

<Files ~ "^\.ht">
Deny from all
</Files>
</Directory>

There you must change the line:

Options +Includes +FollowSymlinks -Indexes

to:

Options +Includes +FollowSymlinks +Indexes

to enable directory browsing. If you dont want to enable directory browsing for the whole server, you can put an .htaccess file in your pics directory with the line:

Options +Indexes
I did this and it worked!
But now (even though I have changed back) I can't access the ISPConfig admin panel.
Any ideas?

Running The Perfect Setup - Ubuntu 6.06 LTS Server (Dapper Drake) plus Webmin
__________________
Running; The Perfect Setup - Ubuntu 9.04 Server
Talaen
Webmin
1GB CPU
375MB RAM
40GB HDD
Domestic ADSL 256kbs/8mbs
Speedtouch Modem/Router
Reply With Quote
  #6  
Old 29th March 2008, 18:37
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,745 Times in 2,578 Posts
Default

What's the output of
Code:
netstat -tap
? Any errors in the error log in /root/ispconfig/httpd/logs?
__________________
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
  #7  
Old 1st April 2008, 12:30
greenpete greenpete is offline
Member
 
Join Date: Feb 2008
Location: Cotswolds
Posts: 51
Thanks: 20
Thanked 1 Time in 1 Post
Send a message via Yahoo to greenpete
Default

Quote:
Originally Posted by falko
What's the output of
Code:
netstat -tap
? Any errors in the error log in /root/ispconfig/httpd/logs?
The netstat doesn't mean a lot to me and most of the log files seem to have no errors, but the 'error_log' says a lot!
It's too big to post so you can download from here. (link now removed)
It seems to me there are a lot of files disappeared and file permissions are wrong.
Do you think I can repair this or should I use a backup image to reinstate things?
The two domains I run are accessable on port 80 as usual, so I uess Apache is running ok there.
Thanks.

Netstat;

Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 *:mysql *:* LISTEN 3732/mysqld
tcp 0 0 *:10000 *:* LISTEN 4336/perl
tcp 0 0 *:ftp *:* LISTEN 3667/proftpd: (acce
tcp 0 0 mail.swerfordhea:domain *:* LISTEN 4303/named
tcp 0 0 localhost.locald:domain *:* LISTEN 4303/named
tcp 0 0 *:smtp *:* LISTEN 3779/master
tcp 0 0 localhost.localdoma:953 *:* LISTEN 4303/named
tcp 0 0 *:49242 *:* LISTEN 13928/python
tcp 0 0 *:49244 *:* LISTEN 2625/python
tcp 0 12672 mail.swerfordheat:53546 bd641750.virtua.c:42651 ESTABLISHED2625/python
tcp 0 8 mail.swerfordheath:smtp 85.110.110.141:3572 ESTABLISHED12646/smtpd
tcp 0 1460 mail.swerfordheat:46556 S0106001839d525d7:30919 ESTABLISHED2625/python
tcp 0 9856 mail.swerfordheat:56066 201-92-156-35.dsl:35066 ESTABLISHED2625/python
tcp 0 0 mail.swerfordheat:50535 client-82-13-26-1:37842 ESTABLISHED2625/python
tcp6 0 0 *:imaps *:* LISTEN 3606/couriertcpd
tcp6 0 0 *op3s *:* LISTEN 3641/couriertcpd
tcp6 0 0 *op3 *:* LISTEN 3621/couriertcpd
tcp6 0 0 *:imap2 *:* LISTEN 3586/couriertcpd
tcp6 0 0 *:www *:* LISTEN 31032/apache2
tcp6 0 0 *:ssh *:* LISTEN 3905/sshd
tcp6 0 0 *:smtp *:* LISTEN 3779/master
tcp6 0 0 ip6-localhost:953 *:* LISTEN 4303/named
tcp6 0 0 *:https *:* LISTEN 31032/apache2
tcp6 0 144 mail.swerfordheath.:ssh 88-108-20-154.dyna:3774 ESTABLISHED12305/sshd: admin [
__________________
Running; The Perfect Setup - Ubuntu 9.04 Server
Talaen
Webmin
1GB CPU
375MB RAM
40GB HDD
Domestic ADSL 256kbs/8mbs
Speedtouch Modem/Router

Last edited by greenpete; 2nd April 2008 at 19:41.
Reply With Quote
  #8  
Old 2nd April 2008, 15:53
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,745 Times in 2,578 Posts
Default

Did you play around with the SSL cert for ISPConfig?
Do you get any errors when you start ISPConfig?
Code:
/etc/init.d/ispconfig_server start
__________________
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
  #9  
Old 4th April 2008, 22:55
greenpete greenpete is offline
Member
 
Join Date: Feb 2008
Location: Cotswolds
Posts: 51
Thanks: 20
Thanked 1 Time in 1 Post
Send a message via Yahoo to greenpete
Default

Quote:
Originally Posted by falko
Did you play around with the SSL cert for ISPConfig?
Do you get any errors when you start ISPConfig?
Code:
/etc/init.d/ispconfig_server start
No I didn't mess with the certs, though I have been meaning to as they are deemed untrustworthy by some browsers!

I don't get it, I ran the command above and it all works now, even when I re-boot!
I would still like directory browsing to work though, but am unsure as to bother or not if it will kill my system?
If someone could recommend how I could safely go about this I would be grateful.
__________________
Running; The Perfect Setup - Ubuntu 9.04 Server
Talaen
Webmin
1GB CPU
375MB RAM
40GB HDD
Domestic ADSL 256kbs/8mbs
Speedtouch Modem/Router
Reply With Quote
  #10  
Old 5th April 2008, 22:35
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,745 Times in 2,578 Posts
 
Default

Please try Till's solution again. It doesn't have any effect on ISPConfig as ISPConfig is running on its own Apache. Your ISPConfig problems must have been caused by something else.
__________________
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
The Following User Says Thank You to falko For This Useful Post:
greenpete (6th April 2008)
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
Mail System doesnt work! crichton Installation/Configuration 3 18th September 2007 00:49
2.6.12 debian install problems s2angel Installation/Configuration 6 31st December 2005 14:21
error while installing..... securitywonks Installation/Configuration 1 23rd December 2005 13:07
Error during ISPConfig install Roadracer Installation/Configuration 1 15th December 2005 01:52
apache user/group won't create directory weedguy Installation/Configuration 6 20th September 2005 00:40


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


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