23 lines
		
	
	
		
			454 B
		
	
	
	
		
			Plaintext
		
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			454 B
		
	
	
	
		
			Plaintext
		
	
	
	
server {
 | 
						|
  listen 0.0.0.0:8080;
 | 
						|
  server_name myapp.example.com;
 | 
						|
 | 
						|
  root /opt/bitnami/wordpress;
 | 
						|
  index index.php;
 | 
						|
 | 
						|
  location / {
 | 
						|
    try_files $uri $uri/ /index.php?q=$uri&$args;
 | 
						|
  }
 | 
						|
 | 
						|
  if (!-e $request_filename)
 | 
						|
  {
 | 
						|
    rewrite ^/(.+)$ /index.php?q=$1 last;
 | 
						|
  }
 | 
						|
 | 
						|
  location ~ \.php$ {
 | 
						|
    fastcgi_pass localhost:9000;
 | 
						|
    fastcgi_index index.php;
 | 
						|
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
 | 
						|
    include fastcgi_params;
 | 
						|
  }
 | 
						|
} |