mirror of
https://framagit.org/tykayn/date-poll-api
synced 2023-08-25 08:23:11 +02:00
42 lines
1.6 KiB
Plaintext
42 lines
1.6 KiB
Plaintext
<VirtualHost *:80>
|
|
ServerName www.tktest.lan
|
|
ServerAlias www.tktest.lan
|
|
|
|
# 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:fcgi://127.0.0.1:9000
|
|
# for Unix sockets, Apache 2..10 or higher
|
|
# SetHandler proxy:unix:/path/to/fpm.sock|fcgi://dummy
|
|
</FilesMatch>
|
|
|
|
# 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
|
|
|
|
# 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
|
|
|
|
DocumentRoot /var/www/html/date-poll-api/public
|
|
<Directory /var/www/html/date-poll-api/public>
|
|
# enable the .htaccess rewrites
|
|
AllowOverride All
|
|
Require all granted
|
|
</Directory>
|
|
|
|
# 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>
|
|
|
|
ErrorLog /var/log/apache2/tktest_error.log
|
|
CustomLog /var/log/apache2/tktest_access.log combined
|
|
</VirtualHost>
|