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
  #11  
Old 22nd January 2010, 15:30
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,721 Times in 2,562 Posts
Default

Can you post the vhost configuration of that vhost?
__________________
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
Sponsored Links
  #12  
Old 22nd January 2010, 15:53
smartin smartin is offline
Member
 
Join Date: Dec 2007
Posts: 82
Thanks: 3
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by falko View Post
Can you post the vhost configuration of that vhost?
Falko,

In the Options tab for that site within ISPc3 I have:
Code:
DAVLockDB /var/lock/apache2/DAVLock
#DAVMinTimeout 600

<Location /var/www/clients/client1/web1/web/davtest>
        Dav On

        AuthType Basic
        AuthName davtest
        AuthUserFile /var/www/clients/client1/web1/web/davtest/.DAVlogin

        <LimitExcept OPTIONS>
                Require user davtest
        </LimitExcept>
</Location>
The actual vhost file seems to be:
Code:
<Directory /var/www/www.myothersite.co.uk>
    AllowOverride None
    Order Deny,Allow
    Deny from all
</Directory>

<VirtualHost *:80>
      DocumentRoot /var/www/www.myothersite.co.uk/web

    ServerName www.myothersite.co.uk
    ServerAlias *.www.myothersite.co.uk
    ServerAdmin webmaster@www.myothersite.co.uk

    ErrorLog /var/log/ispconfig/httpd/www.myothersite.co.uk/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/www.myothersite.co.uk/web>
        Options FollowSymLinks
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>
    <Directory /var/www/clients/client1/web1/web>
        Options FollowSymLinks
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>

    # mod_php enabled
    AddType application/x-httpd-php .php .php3 .php4 .php5
    php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -fwebmaster@www.myothersite.co.uk"
    php_admin_value upload_tmp_dir /var/www/clients/client1/web1/tmp
    php_admin_value session.save_path /var/www/clients/client1/web1/tmp
Hope this helps :-)

S
Reply With Quote
  #13  
Old 23rd January 2010, 12:12
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,721 Times in 2,562 Posts
Default

That's not the full vhost - the end is missing...
__________________
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
  #14  
Old 25th January 2010, 09:24
smartin smartin is offline
Member
 
Join Date: Dec 2007
Posts: 82
Thanks: 3
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by falko View Post
That's not the full vhost - the end is missing...
Falko,

Sorry, I'm not familiar with things like nano text editor...

This is the end of the file:
Code:
DAVLockDB /var/lock/apache2/DAVLock
#DAVMinTimeout 600

<Location /var/www/clients/client1/web1/web/davtest>
        Dav On

        AuthType Basic
        AuthName davtest
        AuthUserFile /var/www/clients/client1/web1/web/davtest/.DAVlogin

        <LimitExcept OPTIONS>
                Require user davtest
        </LimitExcept>
</Location>

</VirtualHost>
Helpful? At least it looks the same as what I pasted in to ISPc3 :-)

S

Last edited by smartin; 25th January 2010 at 09:32.
Reply With Quote
  #15  
Old 26th January 2010, 14:50
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,721 Times in 2,562 Posts
Default

Quote:
Originally Posted by smartin View Post
Helpful?
Unfortunately not. I need the full configuration. You can use cat to output the contents of the file.
__________________
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
  #16  
Old 26th January 2010, 15:00
smartin smartin is offline
Member
 
Join Date: Dec 2007
Posts: 82
Thanks: 3
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by falko View Post
Unfortunately not. I need the full configuration. You can use cat to output the contents of the file.
Falko,

Sorry, I'm not doing very well here am I...

This is what I got:
Code:
me@sierra:/var/www/clients/client5/web5$ sudo cat /etc/apache2/sites-enabled/www.myothersite.co.uk.vhost
[sudo] password for me: 
<Directory /var/www/www.myothersite.co.uk>
    AllowOverride None
    Order Deny,Allow
    Deny from all
</Directory>

<VirtualHost *:80>
      DocumentRoot /var/www/www.myothersite.co.uk/web
  
    ServerName www.myothersite.co.uk
    ServerAlias *.www.myothersite.co.uk
    ServerAdmin webmaster@www.myothersite.co.uk

    ErrorLog /var/log/ispconfig/httpd/www.myothersite.co.uk/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/www.myothersite.co.uk/web>
        Options FollowSymLinks
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>
    <Directory /var/www/clients/client1/web1/web>
        Options FollowSymLinks
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>

    # mod_php enabled
    AddType application/x-httpd-php .php .php3 .php4 .php5
    php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -fwebmaster@www.myothersite.co.uk"
    php_admin_value upload_tmp_dir /var/www/clients/client1/web1/tmp
    php_admin_value session.save_path /var/www/clients/client1/web1/tmp

DAVLockDB /var/lock/apache2/DAVLock
#DAVMinTimeout 600

<Location /var/www/clients/client1/web1/web/davtest>
        Dav On

        AuthType Basic
        AuthName davtest
        AuthUserFile /var/www/clients/client1/web1/web/davtest/.DAVlogin

        <LimitExcept OPTIONS>
                Require user davtest
        </LimitExcept>
</Location>

</VirtualHost>
Better?

S
Reply With Quote
  #17  
Old 27th January 2010, 15:11
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,721 Times in 2,562 Posts
Default

Better.

Can you change

Code:
<Directory /var/www/www.myothersite.co.uk/web>
        Options FollowSymLinks
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>
    <Directory /var/www/clients/client1/web1/web>
        Options FollowSymLinks
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>
to

Code:
<Directory /var/www/www.myothersite.co.uk/web>
        Options FollowSymLinks +Indexes
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>
    <Directory /var/www/clients/client1/web1/web>
        Options FollowSymLinks +Indexes
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>
and restart Apache?
__________________
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
  #18  
Old 28th January 2010, 10:27
smartin smartin is offline
Member
 
Join Date: Dec 2007
Posts: 82
Thanks: 3
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by falko View Post
Better.
Falko,

I think we are nearly there :-) Don't go! :-)

My .vhost now looks like this:
Code:
<Directory /var/www/www.myothersite.co.uk>
    AllowOverride None
    Order Deny,Allow
    Deny from all
</Directory>

<VirtualHost *:80>
      DocumentRoot /var/www/www.myothersite.co.uk/web
  
    ServerName www.myothersite.co.uk
    ServerAlias *.www.myothersite.co.uk
    ServerAdmin webmaster@www.myothersite.co.uk

    ErrorLog /var/log/ispconfig/httpd/www.myothersite.co.uk/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/www.myothersite.co.uk/web>
        Options FollowSymLinks +Indexes
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>
    <Directory /var/www/clients/client1/web1/web>
        Options FollowSymLinks +Indexes       
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>

    # mod_php enabled
    AddType application/x-httpd-php .php .php3 .php4 .php5
    php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -fwebmaster@www.myothersite.co.uk"
    php_admin_value upload_tmp_dir /var/www/clients/client1/web1/tmp
    php_admin_value session.save_path /var/www/clients/client1/web1/tmp

DAVLockDB /var/lock/apache2/DAVLock
#DAVMinTimeout 600

<Location /var/www/clients/client1/web1/web/davtest>
        Dav On

        AuthType Basic
        AuthName davtest
        AuthUserFile /var/www/clients/client1/web1/web/davtest/.DAVlogin

        <LimitExcept OPTIONS>
                Require user davtest
        </LimitExcept>
</Location>

</VirtualHost>
Using my browser, I seem to be able to get to the davtest folder but I don't get a username/password challenge, which is important to me.

Using the OSX finder I get an error that the "Server cannot be found on the network".

There are no errors in my log.

Some tweak is required somewhere.

EDIT:
I thought there wasn't a .Davlogin file inside davtest and so logged in to my ISPc3 panel > Sites > Options and changed the line
Code:
AuthUserFile /var/www/clients/client1/web1/web/davtest/.DAVlogin
to

Code:
AuthUserFile /var/www/clients/client1/web1/web/davtest.DAVlogin
as I could see the web/davtest.DAVlogin file.

This made no difference but when I changed it back, I suddenly can't get to the davtest folder any more, using my browser. I get a 403 Forbidden! error.

I restarted apache.

There *is* in fact a .Davlogin file inside the davtest directory. I thought my ftp client was showing invisible files but it didn't show that one. I can see it in the terminal.

*Now* my log says:
Code:
[Thu Jan 28 10:10:33 2010] [error] [client my.ip] Directory index forbidden by Options directive: /var/www/www.myothersite.co.uk/web/davtest/
I'll write all this up when we are done, I promise! :-)

S

Last edited by smartin; 28th January 2010 at 11:13.
Reply With Quote
  #19  
Old 29th January 2010, 13:54
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,721 Times in 2,562 Posts
Default

I guess the previous change was overwritten by ISPConfig because you changed something in the web interface. Please add this to your Apache Directives field in ISPConfig (ISPc3 panel > Sites > Options) so that the change becomes persistent:

Code:
<Directory /var/www/www.myothersite.co.uk/web>
        Options +Indexes
</Directory>
<Directory /var/www/clients/client1/web1/web>
        Options +Indexes
</Directory>
What's the output of
Code:
ls -la /var/www/clients/client1/web1/web/davtest.DAVlogin
?
__________________
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
  #20  
Old 1st February 2010, 09:43
smartin smartin is offline
Member
 
Join Date: Dec 2007
Posts: 82
Thanks: 3
Thanked 0 Times in 0 Posts
 
Default

Quote:
Originally Posted by falko View Post
I guess the previous change was overwritten by ISPConfig because you changed something in the web interface. Please add this to your Apache Directives field in ISPConfig (ISPc3 panel > Sites > Options) so that the change becomes persistent:

Code:
<Directory /var/www/www.myothersite.co.uk/web>
        Options +Indexes
</Directory>
<Directory /var/www/clients/client1/web1/web>
        Options +Indexes
</Directory>
What's the output of
Code:
ls -la /var/www/clients/client1/web1/web/davtest.DAVlogin
?
Falko,

Well, I can get to the /davtest directory again but still no username/password challenge.

The output of -la /var/www/clients/client1/web1/web/davtest.DAVlogin is:
Code:
-rw-r--r-- 1 root root 22 2010-01-14 14:08 /var/www/clients/client1/web1/web/davtest.DAVlogin
In my Options field within ISPc3 I now have:
Code:
<Directory /var/www/www.myothersite.co.uk/web>
        Options +Indexes
</Directory>
<Directory /var/www/clients/client1/web1/web>
        Options +Indexes
</Directory>
DAVLockDB /var/lock/apache2/DAVLock
#DAVMinTimeout 600

<Location /var/www/clients/client1/web1/web/davtest>
        Dav On

        AuthType Basic
        AuthName davtest
        AuthUserFile /var/www/clients/client1/web1/web/davtest/.DAVlogin

        <LimitExcept OPTIONS>
                Require user davtest
        </LimitExcept>
</Location>
The vhost file of www.myothersite.co.uk is:
Code:
<Directory /var/www/www.myothersite.co.uk>
    AllowOverride None
    Order Deny,Allow
    Deny from all
</Directory>

<VirtualHost *:80>
      DocumentRoot /var/www/www.myothersite.co.uk/web
  
    ServerName www.myothersite.co.uk
    ServerAlias *.www.myothersite.co.uk
    ServerAdmin webmaster@www.myothersite.co.uk

    ErrorLog /var/log/ispconfig/httpd/www.myothersite.co.uk/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/www.myothersite.co.uk/web>
        Options FollowSymLinks
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>
    <Directory /var/www/clients/client1/web1/web>
        Options FollowSymLinks
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>

    # mod_php enabled
    AddType application/x-httpd-php .php .php3 .php4 .php5
    php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -fwebmaster@www.myothersite.co.uk"
    php_admin_value upload_tmp_dir /var/www/clients/client1/web1/tmp
    php_admin_value session.save_path /var/www/clients/client1/web1/tmp

<Directory /var/www/www.myothersite.co.uk/web>
        Options +Indexes
</Directory>
<Directory /var/www/clients/client1/web1/web>
        Options +Indexes
</Directory>
DAVLockDB /var/lock/apache2/DAVLock
#DAVMinTimeout 600

<Location /var/www/clients/client1/web1/web/davtest>
        Dav On

        AuthType Basic
        AuthName davtest
        AuthUserFile /var/www/clients/client1/web1/web/davtest/.DAVlogin

        <LimitExcept OPTIONS>
                Require user davtest
        </LimitExcept>
</Location>

</VirtualHost>
Apache has been restarted.

Sorry this is such hard work! :-)

Any ideas?

S
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
Trouble with Postfix setup not working wmkconn Server Operation 13 9th April 2008 21:45
setup mail on dynamic IP. kameleon25 Installation/Configuration 2 24th January 2008 13:22
The Perfect Setup - SuSE 10.1 (32-bit) - Qouta Issues ? ezfilez HOWTO-Related Questions 3 26th September 2006 18:09
How setup Tomcat JSP on FC5 QuikeMore Suggest HOWTO 1 9th September 2006 14:45
Xen 3.0 Setup For Debian newb problem-No network connectivity on first dom0 boot BCNW HOWTO-Related Questions 4 22nd August 2006 14:24


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


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