This configuration uses example.com as the domain name, please replace it according to your actual situation.
Reminder this configuration only allows the two entry files app.php and app_dev.php in the web directory to run in PHP
script mode, other PHP
existing in the web directory Files (such as other definitions of other Symfony2 entry files, or other PHP
programs installed in this directory) will be downloaded by the user if they are accessed.
server { listen 80; server_name example.com; # domain root /var/www/symfony2/web; # site root directory error_log /var/log/nginx/symfony2.error.log; access_log /var/log/nginx /symfony2.access.log; # If the URL contains app.php, it is forwarded to the pseudo-static format rewrite ^/app\\.php/?(.*)$ /$1 permanent; location /{ index app.php; try_files $ Uri @rewriteapp; } location @rewriteapp { rewrite ^(.*)$ /app.php/$1 last; } # This section is a very popular option for handing over PHP requests to the FastCGI service. Location ~ ^/(app|
App_dev)\\.php(/|
$) { fastcgi_pass 127.0.0.1:9000; fastcgi_split_path_info ^(.+\\.php)(/.*)$; include fastcgi_params; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param HTTPS off; }}
The following is the HTTPS configuration:
server { listen 443; server_name example.com; root /var/www/symfony2/web; ssl on; ssl_certificate /etc/ssl/certs/symfony2.crt; ssl_certificate_key /etc/ssl/private/symfony2.key; Error_log /var/log/nginx/symfony2.error.log; access_log /var/log/nginx/symfony2.access.log; rewrite ^/app\\.php/?(.*)$ /$1 permanent; location /{ index App.php; try_files $uri @rewriteapp; } location @rewriteapp { rewrite ^(.*)$ /app.php/$1 last; } location ~ ^/(app|
App_dev)\\.php(/|
$) { fastcgi_pass 127.0.0.1:9000; fastcgi_split_path_info ^(.+\\.php)(/.*)$; include fastcgi_params; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param HTTPS on; }}
Running live55 under linux shows the figure: not getting ip: ip is 0.0.0.0 live555 does not know th
Computer Store News Microsoft released Windows8 RTM for PC OEMs and manufacturer partners on August
Nginx starts with version 0.7.48 and supports Squid-like caching. This cache uses the URL and relate
The network is often dropped. Many technicians think that the router is unstable. The ac
How to clean large files under Linux
A brief history of Linux operating system development
Linux operating system failure skills
Novice Academy: Ways to Add Linux to Windows Domain
Linux system JDK installation and configuration basic tutorial
Linux, Mac and Windows platform installation Git diagram detailed tutorial
Linux system mount point and partition relationship
Fedora pan0, virbr0 uninstall tutorial
Openssl application programming
Samsung Camera Interface driver(FIMC)
Win7 system pure version of the hidden usb device skills
Play Win8 system voice control function
Win10 preview version of Build 10056 interface update details and changes at a glance
Practical Mac OS X and Windows XPVista coexistence skills
Win10 system installs the Edge browser plug-in method
Network printer cannot print solution under Win7
What is a Windows service How to remove a windows service
Win10 ESD image one-click conversion ISO image method share with official ESD image download address
The six skills of creating a secure xp system, the
Find the calculator under win8 and convert to programmer mode