Advertisement
niammuddin

konfigurasi wordpress di nginx dengan www

Jul 30th, 2014
304
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. server {
  2. listen 80;
  3. server_name domain.com www.domain.com;
  4. index index.php index.html index.htm;
  5. root /usr/share/nginx/html/domain.com/public_html;
  6.  
  7. location / {
  8. try_files $uri $uri/ /index.php?q=$uri&$args;
  9. }
  10.  
  11. location ~ \.php$ {
  12. fastcgi_split_path_info ^(.+\.php)(/.+)$;
  13. fastcgi_pass unix:/var/run/php5-fpm.sock;
  14. fastcgi_index index.php;
  15. include fastcgi_params;
  16. }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement