Forbidden error

Discussion in 'Installation/Configuration' started by viro, Sep 13, 2010.

  1. viro

    viro New Member

    Hello, I'm new to the forum, I have a problem.
    I installed ISPConfig, but when I create a domain and point the broswer to the new site I get this error:

    Forbidden

    You don't have permission to access /sito.it on this server.
    Apache/2.2.14 (Ubuntu) Server at 178.79.142.187 Port 80

    How can I fix?

    Thanks.
     
  2. falko

    falko Super Moderator Howtoforge Staff

    Which ISPConfig version do you use? 2 or 3?
    Any errors in Apache's error log?
     
  3. viro

    viro New Member

    Thanks for your answer, use the version 3, while I do not know how to see the error log. I'm new :eek:
     
  4. falko

    falko Super Moderator Howtoforge Staff

    Logs are in the /var/log/ directory and its subdirectories.

    For example, you can take a look at the last 100 lines from /var/log/apache2/error.log as follows:
    Code:
    tail -n100 /var/log/apache2/error.log
     
  5. viro

    viro New Member

    Hello, and busi for the answer.
    The eror log is this:

    [Tue Sep 14 14:11:24 2010] [error] [client 93.148.52.31] client denied by server configuration: /var/www/prova.it
     
  6. viro

    viro New Member

    I modified the file prova.it.vhost place / etc/apache2/sites-available / where reported this:

    <Directory /var/www/prova.it>
    AllowOverride None
    Order Deny,Allow
    Deny from all
    </Directory>

    with this:

    <Directory /var/www/prova.it>
    AllowOverride None
    Order Deny,Allow
    Allow from all
    </Directory>

    So it works, but there is a way to make everything go automatically without opening the file of every new site created?

    Also now when I open the site address I set out the folders:
    cgi-bin
    log
    ssl
    tmp
    website (where there is the index.html file)

    and not released directly to the page index.html.

    How can I fix?
    Thanks
     
  7. falko

    falko Super Moderator Howtoforge Staff

    Can you post the whole prova.it.vhost file?

    You can configure the start folder in your FTP client (e.g. web/).
     
  8. viro

    viro New Member

    This is my file prova.it.vhost

    Code:
    <Directory /var/www/prova.it>
        AllowOverride None
        Order Deny,Allow
        Allow from all
    </Directory>
    
    <VirtualHost *:80>
          DocumentRoot /var/www/prova.it/web
      
        ServerName prova.it
        ServerAdmin [email protected]
    
        ErrorLog /var/log/ispconfig/httpd/prova.it/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/prova.it/web>
            Options FollowSymLinks
            AllowOverride All
            Order allow,deny
            Allow from all
            
            # ssi enabled
            AddType text/html .shtml
            AddOutputFilter INCLUDES .shtml
            Options +Includes
        </Directory>
        <Directory /var/www/clients/client1/web1/web>
            Options FollowSymLinks
            AllowOverride All
            Order allow,deny
            Allow from all
            
            # ssi enabled
            AddType text/html .shtml
            AddOutputFilter INCLUDES .shtml
            Options +Includes
        </Directory>
    
        # cgi enabled
    	<Directory /var/www/clients/client1/web1/cgi-bin>
          Order allow,deny
          Allow from all
        </Directory>
        ScriptAlias  /cgi-bin/ /var/www/clients/client1/web1/cgi-bin/
        AddHandler cgi-script .cgi
        AddHandler cgi-script .pl
        # suexec enabled
        SuexecUserGroup web1 client1
        # Clear PHP settings of this website
        <FilesMatch "\.ph(p3?|tml)$">
            SetHandler None
        </FilesMatch>
        # php as fast-cgi enabled
        <IfModule mod_fcgid.c>
          # SocketPath /tmp/fcgid_sock/
          IdleTimeout 3600
          ProcessLifeTime 7200
          # MaxProcessCount 1000
          DefaultMinClassProcessCount 3
          DefaultMaxClassProcessCount 100
          IPCConnectTimeout 8
          IPCCommTimeout 360
          BusyTimeout 300
        </IfModule>
        <Directory /var/www/prova.it/web>
            AddHandler fcgid-script .php .php3 .php4 .php5
            FCGIWrapper /var/www/php-fcgi-scripts/web1/.php-fcgi-starter .php
            Options +ExecCGI
            AllowOverride All
            Order allow,deny
            Allow from all
        </Directory>
    	<Directory /var/www/clients/client1/web1/web>
            AddHandler fcgid-script .php .php3 .php4 .php5
            FCGIWrapper /var/www/php-fcgi-scripts/web1/.php-fcgi-starter .php
            Options +ExecCGI
            AllowOverride All
            Order allow,deny
            Allow from all
        </Directory>
    
        # add support for apache mpm_itk
        <IfModule mpm_itk_module>
          AssignUserId web1 client1
        </IfModule>
    
    
    </VirtualHost>
    
    
    
    
    
     
  9. till

    till Super Moderator Staff Member ISPConfig Developer

Share This Page