fix: typo3 gateway

This commit is contained in:
2023-01-18 17:40:09 +01:00
parent c7762f4f5a
commit e6b04278ae
3 changed files with 17 additions and 7 deletions

View File

@@ -0,0 +1,2 @@
dependencies:
- global-handlers

View File

@@ -73,13 +73,14 @@
lineinfile:
path: /etc/php/8.1/fpm/pool.d/www.conf
regex: ^listen = .*$
line: listen = 0.0.0.0:8080
line: listen = 0.0.0.0:9000
notify: restart php-fpm
- name: Configure php-fpm listen allowed clients
lineinfile:
path: /etc/php/8.1/fpm/pool.d/www.conf
regex: ^listen = .*$
line: listen = 0.0.0.0:9000
regex: ^listen\.allowed_clients = .*$
line: listen.allowed_clients = 127.0.0.1
notify: restart php-fpm
- name: Configure php-fpm listen allowed clients

View File

@@ -1,7 +1,13 @@
#log_format scripts '$fastcgi_path_info $document_root$fastcgi_script_name > $request';
server {
#access_log /var/log/nginx/scripts.log scripts;
include fastcgi.conf;
include fastcgi_params;
listen 8080;
index index.php index.html;
root /var/www/html/public;
root /var/www/atlantishq-cms/public/;
location ~ \.php$ {
try_files $uri =404;
@@ -9,8 +15,9 @@ server {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
add_header X-ATHQ-HANDLER cms;
#fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param SCRIPT_FILENAME /var/www/atlantishq-cms/public/index.php;
#fastcgi_param PATH_INFO $fastcgi_path_info;
add_header X-ATHQ-HANDLER cms always;
}
}