Eolisation de l'applicatif MSE
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

msebundle-apache.conf 2.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. <VirtualHost *:80>
  2. ServerName %%pvebundle_domain
  3. ServerAlias %%pvebundle_alias
  4. TimeOut %%mseTimeout
  5. ProxyTimeout %%mseProxyTimeout
  6. DocumentRoot /var/www/html/mse/web
  7. # Uncomment the following line to force Apache to pass the Authorization
  8. # header to PHP: required for "basic_auth" under PHP-FPM and FastCGI
  9. #
  10. # SetEnvIfNoCase ^Authorization$ "(.+)" HTTP_AUTHORIZATION=$1
  11. # For Apache 2.4.9 or higher
  12. # Using SetHandler avoids issues with using ProxyPassMatch in combination
  13. # with mod_rewrite or mod_autoindex
  14. ProxyPassMatch ^/%%{pvebundle_baseurl}/(.*\.php(/.*)?)$ fcgi://127.0.0.1:9000/var/www/html/mse/web/$1
  15. ProxyPassMatch ^/pve/(.*\.php(/.*)?)$ fcgi://127.0.0.1:9000/var/www/html/mse/web/$1
  16. %if %%activer_phpmyadmin == 'oui'
  17. ProxyPassMatch ^/phpmyadmin/(.*\.php(/.*)?)$ fcgi://127.0.0.1:9000/usr/share/phpmyadmin/$1
  18. %end if
  19. %if %%activer_phpldapadmin == 'oui'
  20. ProxyPassMatch ^/phpldapadmin/(.*\.php(/.*)?)$ fcgi://127.0.0.1:9000/usr/share/phpldapadmin/$1
  21. %end if
  22. # If you use Apache version below 2.4.9 you must consider update or use this instead
  23. # ProxyPassMatch ^/(.*\.php(/.*)?)$ fcgi://127.0.0.1:9000/var/www/project/web/$1
  24. # If you run your Symfony application on a subpath of your document root, the
  25. # regular expression must be changed accordingly:
  26. # ProxyPassMatch ^/path-to-app/(.*\.php(/.*)?)$ fcgi://127.0.0.1:9000/var/www/project/web/$1
  27. Alias /%%pvebundle_baseurl/page/image /var/www/html/mse/app/uploads/portal_images
  28. Alias /%%pvebundle_baseurl /var/www/html/mse/web
  29. Alias /pve /var/www/html/mse/web
  30. %if %%activer_phpmyadmin == 'oui'
  31. Alias /phpmyadmin /usr/share/phpmyadmin
  32. %end if
  33. %if %%activer_phpldapadmin == 'oui'
  34. Alias /phpldapadmin /usr/share/phpldapadmin
  35. %end if
  36. <Directory "/var/www/html/mse/web">
  37. AddDefaultCharset UTF-8
  38. DirectoryIndex app.php
  39. Order Allow,Deny
  40. Allow from All
  41. AllowOverride All
  42. Require all granted
  43. </Directory>
  44. %if %%activer_phpmyadmin == 'oui'
  45. <Directory "/usr/share/phpmyadmin">
  46. AddDefaultCharset UTF-8
  47. Order Allow,Deny
  48. Allow from All
  49. AllowOverride All
  50. Require all granted
  51. </Directory>
  52. %end if
  53. %if %%activer_phpldapadmin == 'oui'
  54. <Directory "/usr/share/phpldapadmin">
  55. AddDefaultCharset UTF-8
  56. Order Allow,Deny
  57. Allow from All
  58. AllowOverride All
  59. Require all granted
  60. </Directory>
  61. %end if
  62. <FilesMatch "\.(png|jp?g|gif|ico|css|map|woff?|eot|svg|ttf|js|json|pdf)">
  63. ExpiresActive on
  64. ExpiresDefault "access plus 1 weeks"
  65. </FilesMatch>
  66. # uncomment the following lines if you install assets as symlinks
  67. # or run into problems when compiling LESS/Sass/CoffeeScript assets
  68. # <Directory /var/www/project>
  69. # Options FollowSymlinks
  70. # </Directory>
  71. ErrorLog /dev/null
  72. CustomLog /dev/null common
  73. </VirtualHost>