mirror of
https://framagit.org/tykayn/date-poll-api
synced 2023-08-25 08:23:11 +02:00
add config for apache
This commit is contained in:
parent
5694a703fb
commit
9f57894d2a
@ -1,6 +1,6 @@
|
|||||||
# see https://symfony.com/doc/current/reference/configuration/framework.html
|
# see https://symfony.com/doc/current/reference/configuration/framework.html
|
||||||
framework:
|
framework:
|
||||||
trusted_hosts: ['localhost:4200', 'localhost', 'framadate-api.cipherbliss.com']
|
trusted_hosts: ['localhost:4200', 'localhost', 'tktest.lan', 'framadate-api.cipherbliss.com']
|
||||||
secret: '%env(APP_SECRET)%'
|
secret: '%env(APP_SECRET)%'
|
||||||
#csrf_protection: true
|
#csrf_protection: true
|
||||||
#http_method_override: true
|
#http_method_override: true
|
||||||
|
41
doc/apache2/dev.conf
Normal file
41
doc/apache2/dev.conf
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
<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>
|
26
doc/apache2/dev_php_fpm.conf
Normal file
26
doc/apache2/dev_php_fpm.conf
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
<VirtualHost *:80>
|
||||||
|
ServerName tktest.lan
|
||||||
|
ServerAlias www.tktest.lan
|
||||||
|
|
||||||
|
AddHandler php7-fcgi .php
|
||||||
|
Action php7-fcgi /php7-fcgi
|
||||||
|
Alias /php7-fcgi /usr/lib/cgi-bin/php7-fcgi
|
||||||
|
FastCgiExternalServer /usr/lib/cgi-bin/php7-fcgi -host 127.0.0.1:9000 -pass-header Authorization
|
||||||
|
|
||||||
|
DocumentRoot /var/www/html/date-poll-api/public
|
||||||
|
<Directory /var/www/html/date-poll-api/public>
|
||||||
|
# enable the .htaccess rewrites
|
||||||
|
AllowOverride All
|
||||||
|
Order Allow,Deny
|
||||||
|
Allow from all
|
||||||
|
</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>
|
Loading…
Reference in New Issue
Block a user