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 1.8KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <VirtualHost *:80>
  2. ServerName %%pvebundle_domain
  3. DocumentRoot /var/www/html/mse/web
  4. # Uncomment the following line to force Apache to pass the Authorization
  5. # header to PHP: required for "basic_auth" under PHP-FPM and FastCGI
  6. #
  7. # SetEnvIfNoCase ^Authorization$ "(.+)" HTTP_AUTHORIZATION=$1
  8. # For Apache 2.4.9 or higher
  9. # Using SetHandler avoids issues with using ProxyPassMatch in combination
  10. # with mod_rewrite or mod_autoindex
  11. ProxyPassMatch ^/%%{pvebundle_baseurl}/(.*\.php(/.*)?)$ fcgi://127.0.0.1:9000/var/www/html/mse/web/$1
  12. # If you use Apache version below 2.4.9 you must consider update or use this instead
  13. # ProxyPassMatch ^/(.*\.php(/.*)?)$ fcgi://127.0.0.1:9000/var/www/project/web/$1
  14. # If you run your Symfony application on a subpath of your document root, the
  15. # regular expression must be changed accordingly:
  16. # ProxyPassMatch ^/path-to-app/(.*\.php(/.*)?)$ fcgi://127.0.0.1:9000/var/www/project/web/$1
  17. Alias /%%pvebundle_baseurl /var/www/html/mse/web
  18. Alias /pve /var/www/html/mse/web
  19. <Directory "/var/www/html/mse/web">
  20. AddDefaultCharset UTF-8
  21. DirectoryIndex app.php
  22. Order Allow,Deny
  23. Allow from All
  24. AllowOverride All
  25. Require all granted
  26. </Directory>
  27. <FilesMatch "\.(png|jp?g|gif|ico|css|map|woff?|eot|svg|ttf|js|json|pdf)">
  28. ExpiresActive on
  29. ExpiresDefault "access plus 1 weeks"
  30. </FilesMatch>
  31. # uncomment the following lines if you install assets as symlinks
  32. # or run into problems when compiling LESS/Sass/CoffeeScript assets
  33. # <Directory /var/www/project>
  34. # Options FollowSymlinks
  35. # </Directory>
  36. ErrorLog /var/log/apache2/mse_error.log
  37. CustomLog /var/log/apache2/mse_access.log combined
  38. </VirtualHost>