Article 5SAVE Question

Question

by
TBotNik
from LinuxQuestions.org on (#5SAVE)
All,

I think I finally figured this out, but really only want opinions at this point. I wrote several threads trying to address this and now think I've got it. A couple of the threads I posted are:

linuxquestions.org/questions/linux-software-2/apache-alias-help-4175681489/

linuxquestions.org/questions/linux-software-2/apache-not-sure-4175689230/

Anyway searching through all the Apache docs there is nothing these about using and hosting off a secondary drive. Since the IISC announced in 2014 that any hosting out of the "/var/www/" directory is not legal or secure and that all hosting should be on the secondary drive, my threads were attempts to get this working.

Apache said they would add this capability, but did not or their docs would be talking about it.

Anyway here is what I figured out that should work, though the security will not be as tight as it should be:

Steps:
1.) Give the secondary drive a fixed mount point in fstab!

fstab entry:

Code:/dev/sdb1 /3T ext4 defaults 0 12.) Set default directory:
Code:/3T/Projects/www or whatever you decide this is mine!All hosting must be in that default directory!

3.) Declare the VHost dirs in "/var/www" and copy config files per Apache docs,

4.) Use symlinks to link the VHost dirs to the Project directories actually containing the code!

Now this is where I need your opinions! Do y'all think this is right and will work?

I'll be trying this in the next few days, but always value my friends and gurus input!

Cheers!

TBNKlatest?d=yIl2AUoC8zA latest?i=_O2TOmL-5VU:3onEu8OpshI:F7zBnMy latest?i=_O2TOmL-5VU:3onEu8OpshI:V_sGLiP latest?d=qj6IDK7rITs latest?i=_O2TOmL-5VU:3onEu8OpshI:gIN9vFw
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments