Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- server_name test.wa-essence.com;
- root /var/www/test_wa_essence;
- index index.php index.html index.htm;
- location / {
- try_files $uri $uri/ /index.php$is_args$args;
- }
- #location /wachampionacademy {
- # Tak perlu isi apa2 dah sini. Ini adalah subfolder untuk /var/www/test_wa_essence dan bukan sub-domain name. Sub-domain name contohnya macam test2.wa-essence.com , test3.wa-essence.com . Just manual install je WordPress lain kat sini. Upload installer dia & follow the installation steps.
- #}
- location ~ \.php$ {
- include snippets/fastcgi-php.conf;
- fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
- }
- location ~ \.php$ {
- include snippets/fastcgi-php.conf;
- fastcgi_param SCRIPT_FILENAME $request_filename;
- fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
- }
- location ~ /\.ht {
- deny all;
- }
- location = /favicon.ico { log_not_found off; access_log off; }
- location = /robots.txt { log_not_found off; access_log off; allow all; }
- location ~* \.(css|gif|ico|jpeg|jpg|js|png)$ {
- expires max;
- log_not_found off;
- }
- # SSL port 443 tu kena buka server block baru, kalau masih baru dalam Nginx better asingkan ngan port 80.
- # If better jangan pakai. Rujuk sini https://www.nginx.com/resources/wiki/start/topics/depth/ifisevil/
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement