LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Apache & filesystem boundaries (https://www.linuxquestions.org/questions/linux-server-73/apache-and-filesystem-boundaries-4175683829/)

systemd-refugee 10-17-2020 10:35 PM

Apache & filesystem boundaries
 
With apache2 set up as local http server I get to test and prove my web pages before uploading them to my modest personal web site. But since at times I use different distros this leads to a lot of duplication and occasional loss because I don't know of any way to place one common http folder in a place where it could be used by apache on any of my installations. As far as I know apache will not let me configure with crossed filesystem boundaries, but what is THE reference filesystem when theoretically one could have as many partitions as directories under /?

To be specific I have 5 distros installed on /dev/sda partitions, how could I park the http directory on a partition on /dev/sdX? Is this possible at all?

TIA

berndbausch 10-18-2020 12:01 AM

You can put the http directory wherever you like, and Apache doesn't care on which device it is located, nor does it mind file system boundaries.

For example, you could configure the http directory as /srv/www, then mount /dev/sdX1 on /srv/www and /dev/sdY2 on /srv/www/html.

systemd-refugee 10-18-2020 08:59 AM

resolved
 
Quote:

Originally Posted by berndbausch (Post 6176291)
You can put the http directory wherever you like, and Apache doesn't care on which device it is located, nor does it mind file system boundaries.
For example, you could configure the http directory as /srv/www, then mount /dev/sdX1 on /srv/www and /dev/sdY2 on /srv/www/html.

Thanks, gee how time flies, last time i tried that there was even a warning not to :)


All times are GMT -5. The time now is 08:53 AM.