nginx server changing root location ?

voyager1972

New Member
Joined
Jun 30, 2025
Messages
3
Reaction score
0
Credits
24
i have installed nginx server on my raspberry pi , i want to change the root location to my hard drive ,when i change the root location to the hard drive i get permission denied , what permissions do i need to get access ? any help would be appreciated
 


This isn't as easy as you might think.

For one thing the distro matters, why? Because selinux and apparmour control this.
You will have to change your systemd service file.
You will have to change permissions on the new directories.
You will have to update your nginx.conf file, or create a new a conf file under /etc/nginx/conf.d

Once all that is done, you will have to restart the service.
 
thanks for the reply , can you point me in the direction of a step by step guide to get this up and running , my linux skills are very basic .
 
got everything up and running from the hard drive , turns out it was simple enough once everything clicked into place.
 


Follow Linux.org

Members online


Top