View Single Post
  #5  
Old 7th February 2013, 17:21
Zebulon90 Zebulon90 is offline
Junior Member
 
Join Date: Feb 2013
Posts: 5
Thanks: 1
Thanked 0 Times in 0 Posts
Default

eve-admin.com.vhost :
Code:
<Directory /var/www/eve-admin.com>
    AllowOverride None
    Order Deny,Allow
    Deny from all
</Directory>

<VirtualHost 46.105.12.37:80>
      DocumentRoot /var/www/eve-admin.com/web

    ServerName eve-admin.com
    ServerAlias www.eve-admin.com
    ServerAdmin webmaster@eve-admin.com

    ErrorLog /var/log/ispconfig/httpd/eve-admin.com/error.log

    Alias /error/ "/var/www/eve-admin.com/web/error/"
    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 502 /error/502.html
    ErrorDocument 503 /error/503.html

    <IfModule mod_ssl.c>
    </IfModule>

    <Directory /var/www/eve-admin.com/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/client0/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/client0/web1/cgi-bin>
      Order allow,deny
      Allow from all
    </Directory>
    ScriptAlias  /cgi-bin/ /var/www/clients/client0/web1/cgi-bin/
    AddHandler cgi-script .cgi
    AddHandler cgi-script .pl
    # Clear PHP settings of this website
    <FilesMatch "\.ph(p3?|tml)$">
        SetHandler None
    </FilesMatch>
    # php as fast-cgi enabled
        # For config options see: http://httpd.apache.org/mod_fcgid/mod/mod_fcgid.html
    <IfModule mod_fcgid.c>
        IdleTimeout 300
        ProcessLifeTime 3600
        # MaxProcessCount 1000
        DefaultMinClassProcessCount 0
        DefaultMaxClassProcessCount 100
        IPCConnectTimeout 3
        IPCCommTimeout 360
        BusyTimeout 300
    </IfModule>
    <Directory /var/www/eve-admin.com/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/client0/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 client0
    </IfModule>

    <IfModule mod_dav_fs.c>
          # Do not execute PHP files in webdav directory
      <Directory /var/www/clients/client0/web1/webdav>
            <FilesMatch "\.ph(p3?|tml)$">
          SetHandler None
        </FilesMatch>
      </Directory>
      DavLockDB /var/www/clients/client0/web1/tmp/DavLock
      # DO NOT REMOVE THE COMMENTS!
      # IF YOU REMOVE THEM, WEBDAV WILL NOT WORK ANYMORE!
      # WEBDAV BEGIN
      # WEBDAV END
    </IfModule>


</VirtualHost>
dev.eve-admin.com.vhost :
Code:
<Directory /var/www/dev.eve-admin.com>
    AllowOverride None
    Order Deny,Allow
    Deny from all
</Directory>

<VirtualHost 46.105.12.37:80>
      DocumentRoot /var/www/dev.eve-admin.com/web

    ServerName dev.eve-admin.com
    ServerAdmin webmaster@dev.eve-admin.com

    ErrorLog /var/log/ispconfig/httpd/dev.eve-admin.com/error.log

    Alias /error/ "/var/www/dev.eve-admin.com/web/error/"
    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 502 /error/502.html
    ErrorDocument 503 /error/503.html

    <IfModule mod_ssl.c>
    </IfModule>

    <Directory /var/www/dev.eve-admin.com/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/client0/web14/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/client0/web14/cgi-bin>
      Order allow,deny
      Allow from all
    </Directory>
    ScriptAlias  /cgi-bin/ /var/www/clients/client0/web14/cgi-bin/
    AddHandler cgi-script .cgi
    AddHandler cgi-script .pl
    # suexec enabled
    <IfModule mod_suexec.c>
      SuexecUserGroup web14 client0
    </IfModule>
    # Clear PHP settings of this website
    <FilesMatch "\.ph(p3?|tml)$">
        SetHandler None
    </FilesMatch>
    # php as fast-cgi enabled
        # For config options see: http://httpd.apache.org/mod_fcgid/mod/mod_fcgid.html
    <IfModule mod_fcgid.c>
        IdleTimeout 300
        ProcessLifeTime 3600
        # MaxProcessCount 1000
        DefaultMinClassProcessCount 0
        DefaultMaxClassProcessCount 100
        IPCConnectTimeout 3
        IPCCommTimeout 360
        BusyTimeout 300
    </IfModule>
    <Directory /var/www/dev.eve-admin.com/web>
        AddHandler fcgid-script .php .php3 .php4 .php5
        FCGIWrapper /var/www/php-fcgi-scripts/web14/.php-fcgi-starter .php
        Options +ExecCGI
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>
    <Directory /var/www/clients/client0/web14/web>
        AddHandler fcgid-script .php .php3 .php4 .php5
        FCGIWrapper /var/www/php-fcgi-scripts/web14/.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 web14 client0
    </IfModule>

    <IfModule mod_dav_fs.c>
          # Do not execute PHP files in webdav directory
      <Directory /var/www/clients/client0/web14/webdav>
            <FilesMatch "\.ph(p3?|tml)$">
          SetHandler None
        </FilesMatch>
      </Directory>
      DavLockDB /var/www/clients/client0/web14/tmp/DavLock
      # DO NOT REMOVE THE COMMENTS!
      # IF YOU REMOVE THEM, WEBDAV WILL NOT WORK ANYMORE!
      # WEBDAV BEGIN
      # WEBDAV END
    </IfModule>


</VirtualHost>
ls -al /etc/apache2/sites-available/
Code:
root@vps14505:/etc/apache2/sites-available# ls -al /etc/apache2/sites-available/
total 60
drwxr-xr-x 2 root root 4096  7 févr. 13:13 .
drwxr-xr-x 7 root root 4096  6 févr. 19:04 ..
-rw-r--r-- 1 root root 1022 29 nov.  17:54 apps.vhost
-rw-r--r-- 1 root root  692 13 sept. 04:53 default
-rw-r--r-- 1 root root 7590 29 nov.  17:32 default-ssl
-rw-r--r-- 1 root root 7251 13 sept. 04:53 default-ssl.dpkg-dist
-rw-r--r-- 1 root root 3395  7 févr. 13:13 dev.eve-admin.com.vhost
-rw-r--r-- 1 root root 3287  7 févr. 13:13 eve-admin.com.vhost
-rw-r--r-- 1 root root 1248  7 sept.  2011 ispconfig.conf
-rw-r--r-- 1 root root 1774  6 févr. 16:59 ispconfig.vhost
-rw-r--r-- 1 root root 4017 30 nov.  08:38 margelin.fr.vhost
-rw-r--r-- 1 root root 4033 30 nov.  08:38 pulsar-inc.eu.vhost
-rw-r--r-- 1 root root 4017 30 nov.  08:38 zebullon.fr.vhost
ls -la /etc/apache2/sites-enabled/
Code:
root@vps14505:/etc/apache2/sites-available# ls -la /etc/apache2/sites-enabled/
total 8
drwxr-xr-x 2 root root 4096  7 févr. 08:29 .
drwxr-xr-x 7 root root 4096  6 févr. 19:04 ..
lrwxrwxrwx 1 root root   39 29 nov.  17:27 000-apps.vhost -> /etc/apache2/sites-available/apps.vhost
lrwxrwxrwx 1 root root   26 29 nov.  17:27 000-default -> ../sites-available/default
lrwxrwxrwx 1 root root   43 29 nov.  17:27 000-ispconfig.conf -> /etc/apache2/sites-available/ispconfig.conf
lrwxrwxrwx 1 root root   44 29 nov.  17:27 000-ispconfig.vhost -> /etc/apache2/sites-available/ispconfig.vhost
lrwxrwxrwx 1 root root   52  7 févr. 08:12 100-dev.eve-admin.com.vhost -> /etc/apache2/sites-available/dev.eve-admin.com.vhost
lrwxrwxrwx 1 root root   48  7 févr. 08:29 100-eve-admin.com.vhost -> /etc/apache2/sites-available/eve-admin.com.vhost
lrwxrwxrwx 1 root root   30 29 nov.  17:27 default-ssl -> ../sites-available/default-ssl
lrwxrwxrwx 1 root root   46 30 nov.  08:38 margelin.fr.vhost -> /etc/apache2/sites-available/margelin.fr.vhost
lrwxrwxrwx 1 root root   48 30 nov.  08:37 pulsar-inc.eu.vhost -> /etc/apache2/sites-available/pulsar-inc.eu.vhost
lrwxrwxrwx 1 root root   46 30 nov.  08:38 zebullon.fr.vhost -> /etc/apache2/sites-available/zebullon.fr.vhost
Reply With Quote