Skip to content

Commit 5aebfb7

Browse files
authored
Update README.md
1 parent c6d216c commit 5aebfb7

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

README.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -858,6 +858,36 @@ To run the functional tests locally you may run the following command:
858858
This runs the functional tests from the "tests" directory. It uses the database dumps (fixtures) and
859859
database configuration (config) from the corresponding subdirectories.
860860

861+
## Nginx config example
862+
```
863+
server {
864+
listen 80 default_server;
865+
listen [::]:80 default_server;
866+
867+
root /var/www/html;
868+
index index.php index.html index.htm index.nginx-debian.html;
869+
server_name server_domain_or_IP;
870+
871+
location / {
872+
try_files $uri $uri/ =404;
873+
}
874+
875+
location ~ [^/]\.php(/|$) {
876+
fastcgi_split_path_info ^(.+\.php)(/.+)$;
877+
try_files $fastcgi_script_name =404;
878+
set $path_info $fastcgi_path_info;
879+
fastcgi_param PATH_INFO $path_info;
880+
fastcgi_index index.php;
881+
include fastcgi.conf;
882+
fastcgi_pass unix:/run/php/php7.0-fpm.sock;
883+
}
884+
885+
location ~ /\.ht {
886+
deny all;
887+
}
888+
}
889+
```
890+
861891
### Docker
862892

863893
Install docker using the following commands and then logout and login for the changes to take effect:

0 commit comments

Comments
 (0)