I installed a nginx webserver locally. The web root is under /var/www
Now I have a project which looks like this: /var/www /test-project /src /tests
The src folder is the folder, which contains the index.php file. Now I want to run the site when I enter https://localhost/test-project into the browser.
Currently this is my configuration:
server { listen 443; server_name localhost; root /var/www/; access_log /usr/local/etc/nginx/logs/default-ssl.access.log main; ssl on; ssl_certificate ssl/localhost.crt; ssl_certificate_key ssl/localhost.key; ssl_session_timeout 5m; ssl_protocols SSLv2 SSLv3 TLSv1; ssl_ciphers HIGH:!aNULL:!MD5; ssl_prefer_server_ciphers on; location / { try_files $uri $uri/ /index.php?$args; include /usr/local/etc/nginx/conf.d/php-fpm; } location ~ /test-project { #/(?!Templates|uploads).* { try_files $uri/ $uri/ /test-project/src/index.php?$args; include /usr/local/etc/nginx/conf.d/php-fpm; } error_page 404 /404.html; error_page 403 /403.html; } But currently I always get redirected to the 404 page. Can anybody tell me what I have to change to get it running?


alias /var/www/test-project/srcto the test-project location?