I have NGINX running on CentOS7. And I would like to share the
/etc/nginx directory between Linux and Windows.
The reason is that, I don't want to access the file every time I need to change/add hosts or play around with different configurations. For this I mounted the
/etc/nginx dir to a folder on my Windows desktop as:
sudo mount -t vboxsf nginx /etc/nginx
Everything worked, and I can access both file and make an edit, but for some reason NGINX won't restart and this error is all I get.
[root@localhost]# systemctl status nginx.service â nginx.service - nginx - high performance web server Loaded: loaded (/usr/lib/systemd/system/nginx.service; disabled; vendor preset: disabled) Active: failed (Result: exit-code) since Fri 2017-01-06 07:02:54 EST; 17s ago Docs: http://nginx.org/en/docs/ Process: 3096 ExecStartPre=/usr/sbin/nginx -t -c /etc/nginx/nginx.conf (code=exited, status=1/FAILURE) Jan 06 07:02:54 aphrodite systemd: Starting nginx - high performance web server... Jan 06 07:02:54 aphrodite nginx: nginx: [emerg] open() "/etc/nginx/nginx.conf" failed (13: Permission denied) Jan 06 07:02:54 aphrodite nginx: nginx: configuration file /etc/nginx/nginx.conf test failed Jan 06 07:02:54 aphrodite systemd: nginx.service: control process exited, code=exited status=1 Jan 06 07:02:54 aphrodite systemd: Failed to start nginx - high performance web server. Jan 06 07:02:54 aphrodite systemd: Unit nginx.service entered failed state. Jan 06 07:02:54 aphrodite systemd: nginx.service failed.