hi aminbaik , you can use the following example and fill the values in <> server { listen 80; server_name example.com; return 301 https://$server_name$request_uri; } server { listen 443 ssl; server_name example.com; error_log /var/log/nginx/example.com.error.log warn; access_log /var/log/nginx/example.com.access.log warnby silverhawkz - How to...
adding to the thread above , the folders should be created provided you have the following config in your nginx.conf include /etc/nginx/sites-enabled/*; #(for virtual hosts)by silverhawkz - How to...
u can create the folders and the touch the default file urself...it will still work . verify with nginx -tby silverhawkz - How to...
Hi , I have a nginx 1.4.6 running on Ubuntu 14.04.5 LTS and recently i have changed the path of the access_log and error_log to a diff path (which has bigger disk). However after changing the path in nginx.conf i still see the error log being written to the regular log path /var/log/nginx/error.log as well as the new path, - but with time difference and content. i am seeking advice from this fby silverhawkz - How to...
![]() |
![]() |
![]() |
![]() |
|