2022-04-07 11:49:17 +02:00
|
|
|
<VirtualHost *:80>
|
2022-04-07 13:07:00 +02:00
|
|
|
# Uncomment the following line to force Apache to pass the Authorization
|
|
|
|
# header to PHP: required for "basic_auth" under PHP-FPM and FastCGI
|
|
|
|
#
|
|
|
|
# SetEnvIfNoCase ^Authorization$ "(.+)" HTTP_AUTHORIZATION=$1
|
|
|
|
|
|
|
|
# For Apache 2.4.9 or higher
|
|
|
|
# Using SetHandler avoids issues with using ProxyPassMatch in combination
|
|
|
|
# with mod_rewrite or mod_autoindex
|
|
|
|
<FilesMatch \.php$>
|
|
|
|
SetHandler "proxy:unix:/run/php/php7.4-fpm.sock|fcgi://127.0.0.1:9000"
|
|
|
|
# for Unix sockets, Apache 2.4.10 or higher
|
|
|
|
# SetHandler proxy:unix:/path/to/fpm.sock|fcgi://dummy
|
|
|
|
</FilesMatch>
|
2022-04-07 11:49:17 +02:00
|
|
|
|
2022-04-07 13:07:00 +02:00
|
|
|
# If you use Apache version below 2.4.9 you must consider update or use this instead
|
|
|
|
# ProxyPassMatch ^/(.*\.php(/.*)?)$ fcgi://127.0.0.1:9000/var/www/project/public/$1
|
2022-04-07 11:49:17 +02:00
|
|
|
|
2022-04-07 13:07:00 +02:00
|
|
|
# If you run your Symfony application on a subpath of your document root, the
|
|
|
|
# regular expression must be changed accordingly:
|
|
|
|
# ProxyPassMatch ^/path-to-app/(.*\.php(/.*)?)$ fcgi://127.0.0.1:9000/var/www/project/public/$1
|
2022-04-07 11:49:17 +02:00
|
|
|
|
2022-04-07 13:07:00 +02:00
|
|
|
DocumentRoot /loginapp/public
|
|
|
|
<Directory /loginapp/public>
|
|
|
|
# enable the .htaccess rewrites
|
|
|
|
AllowOverride All
|
|
|
|
Require all granted
|
|
|
|
</Directory>
|
2022-04-07 11:49:17 +02:00
|
|
|
|
2022-04-07 13:07:00 +02:00
|
|
|
# uncomment the following lines if you install assets as symlinks
|
|
|
|
# or run into problems when compiling LESS/Sass/CoffeeScript assets
|
|
|
|
# <Directory /var/www/project>
|
|
|
|
# Options FollowSymlinks
|
|
|
|
# </Directory>
|
2022-04-07 11:49:17 +02:00
|
|
|
|
2022-04-07 13:07:00 +02:00
|
|
|
ErrorLog /var/log/apache2/project_error.log
|
|
|
|
CustomLog /var/log/apache2/project_access.log combined
|
2022-04-07 11:49:17 +02:00
|
|
|
</VirtualHost>
|