Guest User

Untitled

a guest
May 13th, 2018
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.91 KB | None | 0 0
  1. <VirtualHost *:80>
  2. # The ServerName directive sets the request scheme, hostname and port that
  3. # the server uses to identify itself. This is used when creating
  4. # redirection URLs. In the context of virtual hosts, the ServerName
  5. # specifies what hostname must appear in the request's Host: header to
  6. # match this virtual host. For the default virtual host (this file) this
  7. # value is not decisive as it is used as a last resort host regardless.
  8. # However, you must set it for any further virtual host explicitly.
  9. #ServerName www.example.com
  10.  
  11.  
  12. ServerAdmin webmaster@localhost
  13. DocumentRoot /var/www/html
  14. # Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
  15. # error, crit, alert, emerg.
  16. # It is also possible to configure the loglevel for particular
  17. # modules, e.g.
  18. #LogLevel info ssl:warn
  19.  
  20. ErrorLog ${APACHE_LOG_DIR}/error.log
  21. CustomLog ${APACHE_LOG_DIR}/access.log combined
  22.  
  23. # For most configuration files from conf-available/, which are
  24. # enabled or disabled at a global level, it is possible to
  25. # include a line for only one particular virtual host. For example the
  26. # following line enables the CGI configuration for this host only
  27. # after it has been globally disabled with "a2disconf".
  28. #Include conf-available/serve-cgi-bin.con
  29. RewriteEngine on
  30. RewriteCond %{SERVER_NAME} =subdomain.firstsite.tk
  31. RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
  32. </VirtualHost>
  33.  
  34. # vim: syntax=apache ts=4 sw=4 sts=4 sr noet
  35.  
  36. <VirtualHost *:80>
  37.  
  38.  
  39. <IfModule mod_fastcgi.c>
  40. AddHandler php56-fcgi-www .php
  41. Action php56-fcgi-www /php56-fcgi-www
  42. Alias /php56-fcgi-www /usr/lib/cgi-bin/php56-fcgi-www
  43. FastCgiExternalServer /usr/lib/cgi-bin/php56-fcgi-www -socket /run/php/php5.6-fpm.sock -pass-header Authorization
  44. <Directory "/usr/lib/cgi-bin">
  45. Require all granted
  46. </Directory>
  47. </IfModule>
  48.  
  49. <IfModule mod_fastcgi.c>
  50. AddHandler php71-fcgi-www .php
  51. Action php71-fcgi-www /php71-fcgi-www
  52. Alias /php71-fcgi-www /usr/lib/cgi-bin/php71-fcgi-www
  53. FastCgiExternalServer /usr/lib/cgi-bin/php71-fcgi-www -socket /run/php/php7.1-fpm.sock -idle-timeout 1800 -pass-header Authorization
  54. <Directory "/usr/lib/cgi-bin">
  55. Require all granted
  56. </Directory>
  57. </IfModule>
  58.  
  59. <IfModule mod_fastcgi.c>
  60. <FilesMatch ".+\.ph(p[345]?|t|tml)$">
  61. #Uncomment the SetHandler you want to use by default
  62. #SetHandler php56-fcgi-www
  63. #SetHandler php71-fcgi-www
  64. </FilesMatch>
  65. </IfModule>
  66.  
  67. Alias /html "/var/www/html/"
  68. <Directory "/var/www/html/">
  69. <FilesMatch ".+\.ph(p[345]?|t|tml)$">
  70. #Uncomment the SetHandler with the opposite php version
  71. #SetHandler php56-fcgi-www
  72. #SetHandler php71-fcgi-www
  73. </FilesMatch>
  74. </Directory>
  75.  
  76. </VirtualHost>
Add Comment
Please, Sign In to add comment