diff --git a/conf/nginx.conf b/conf/nginx.conf index a29c464..e425fd0 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -137,63 +137,3 @@ location ^~ YNH_WWW_PATH { # Include SSOWAT user panel. # include conf.d/yunohost_panel.conf.inc; } - - - - - - - - - - location / { - # First attempt to serve request as file, then - # as directory, then fall back to front-end controller - # (do not forget to pass GET parameters). - try_files $uri $uri/ /index.php?$query_string; - } - - location ~ /install.php/ { - try_files $uri $uri/ /install.php?$query_string; - } - location ~ /dev.php/ { - try_files $uri $uri/ /dev.php?$query_string; - } - location ~ /preview.php/ { - try_files $uri $uri/ /preview.php?$query_string; - } - location ~ /clear_cache.php/ { - try_files $uri $uri/ /clear_cache.php?$query_string; - } - - # - # Production entry point. - # - location ~ ^/index\.php(/|$) { - fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; - fastcgi_split_path_info ^(.+\.php)(/.+)$; - # NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini - # With php5-fpm: - fastcgi_pass unix:/var/run/php5-fpm.sock; - include fastcgi_params; - # Prevents URIs that include the front controller. This will 404: - # http://domain.tld/app.php/some-path - # Remove the internal directive to allow URIs like this - internal; - } - - # - # Preview, Dev and Install entry points. - # - # In production server, don't deploy dev.php or install.php - # - location ~ ^/(dev|install|preview|clear_cache)\.php(/|$) { - # Enforce OPCache PHP class cache invalidation at each request - #fastcgi_param PHP_VALUE "opcache.revalidate_freq=0"; - fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; - fastcgi_split_path_info ^(.+\.php)(/.+)$; - # NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini - # With php5-fpm: - fastcgi_pass unix:/var/run/php5-fpm.sock; - include fastcgi_params; - }