Advertisement
Guest User

Untitled

a guest
Feb 1st, 2016
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <Directory /var/www/***.fr>
  2.                AllowOverride None
  3.                                Require all denied
  4.                </Directory>
  5.  
  6. <VirtualHost *:80>
  7.                                        DocumentRoot /var/www/***.fr/web
  8.  
  9.                ServerName ***.fr
  10.                ServerAlias www.***.fr
  11.                ServerAdmin webmaster@***.fr
  12.  
  13.                ErrorLog /var/log/ispconfig/httpd/***.fr/error.log
  14.  
  15.                Alias /error/ "/var/www/***.fr/web/error/"
  16.                ErrorDocument 400 /error/400.html
  17.                ErrorDocument 401 /error/401.html
  18.                ErrorDocument 403 /error/403.html
  19.                ErrorDocument 404 /error/404.html
  20.                ErrorDocument 405 /error/405.html
  21.                ErrorDocument 500 /error/500.html
  22.                ErrorDocument 502 /error/502.html
  23.                ErrorDocument 503 /error/503.html
  24.  
  25.                <IfModule mod_ssl.c>
  26.                </IfModule>
  27.  
  28.                <Directory /var/www/***.fr/web>
  29.                                # Clear PHP settings of this website
  30.                                <FilesMatch ".+\.ph(p[345]?|t|tml)$">
  31.                                                SetHandler None
  32.                                </FilesMatch>
  33.                                Options +FollowSymLinks
  34.                                AllowOverride All
  35.                                                                Require all granted
  36.                                                </Directory>
  37.  
  38.  
  39.  
  40.  
  41.                # cgi enabled
  42.        <Directory /var/www/clients/client1/web1/cgi-bin>
  43.                                                Require all granted
  44.                                        </Directory>
  45.                ScriptAlias  /cgi-bin/ /var/www/clients/client1/web1/cgi-bin/
  46.                <FilesMatch "\.(cgi|pl)$">
  47.                        SetHandler cgi-script
  48.                </FilesMatch>
  49.                # suexec enabled
  50.                <IfModule mod_suexec.c>
  51.                        SuexecUserGroup web1 client1
  52.                </IfModule>
  53.                # mod_php enabled
  54.                AddType application/x-httpd-php .php .php3 .php4 .php5
  55.                php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -fwebmaster@***.fr"
  56.                php_admin_value upload_tmp_dir /var/www/clients/client1/web1/tmp
  57.                php_admin_value session.save_path /var/www/clients/client1/web1/tmp
  58.        # PHPIniDir /var/www/conf/web1
  59.                php_admin_value open_basedir /var/www/clients/client1/web1/web:/var/www/clients/client1/web1/private:/var/www/clients/client1/web1/tmp:/var/www/***.fr/web:/srv/www/***.fr/web:/usr/share/php5:/usr/share/php:/tmp:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/lib/phpmyadmin
  60.  
  61.  
  62.                # add support for apache mpm_itk
  63.                <IfModule mpm_itk_module>
  64.                        AssignUserId web1 client1
  65.                </IfModule>
  66.  
  67.                <IfModule mod_dav_fs.c>
  68.                # Do not execute PHP files in webdav directory
  69.                        <Directory /var/www/clients/client1/web1/webdav>
  70.                                <ifModule mod_security2.c>
  71.                                        SecRuleRemoveById 960015
  72.                                        SecRuleRemoveById 960032
  73.                                </ifModule>
  74.                                <FilesMatch "\.ph(p3?|tml)$">
  75.                                        SetHandler None
  76.                                </FilesMatch>
  77.                        </Directory>
  78.                        DavLockDB /var/www/clients/client1/web1/tmp/DavLock
  79.                        # DO NOT REMOVE THE COMMENTS!
  80.                        # IF YOU REMOVE THEM, WEBDAV WILL NOT WORK ANYMORE!
  81.      # WEBDAV BEGIN
  82.                        # WEBDAV END
  83.                </IfModule>
  84. </VirtualHost>
  85. --------------------------------------------------
  86. AND SAME THING FOR *:443
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement