Logo 
Search:

Unix / Linux / Ubuntu Forum

Ask Question   UnAnswered
Home » Forum » Unix / Linux / Ubuntu       RSS Feeds

/var/www folder question

  Date: Jan 02    Category: Unix / Linux / Ubuntu    Views: 366
  

Im setting up a computer for a business down town. It has ubuntu on it
and basically its for their software and web development. When I do my
development stuff I have it all in /var/www/ folder but, they want
theirs set up in /home because apparently its more secure. I dont know
about more secure but maybe easier to back up.

Anyway, I wanted to see if Im totally off here with how Im working.

Share: 

 

10 Answers Found

 
Answer #1    Answered On: Jan 02    

I don't know but would having a 'hard' symbolic link work from /home to the
www folder work in this case?

 
Answer #2    Answered On: Jan 02    

I could but I'm not sure that is secure. That is why I was seeing if
anyone has a a similar setup.

 
Answer #3    Answered On: Jan 02    

I think You work on apache!!
is so you can make this hard link
but i have an idea,
secure is gurantee on linux system
you can make the permission of '/var/www/' ot their username then you can
easily make soft link between "/home/<username>" and "/var/www/"

 
Answer #4    Answered On: Jan 02    

This is what you want.

www.opensourcehowto.org/.../setup-apache2-with-access-to-ho
me-directories.html

 
Answer #5    Answered On: Jan 02    

Ok. Im going to need a bit of help here.
First, even though this seems simple enough, there is way too much room
for error on what to do.

I ran /etc/init.d/apache2 stop.
I opened /etc/apache2/apache2.conf.
I did not find the <IfModule mod_userdir.c> but a little with a
searching I found userdir.conf and userdir.load.

So, Im not sure what Im supposed to do. Am I supposed to add the code to
apache2.conf or am I supposed to find a #userdir.load and unmark it -
which Im running a scan for something like that now. Im just a bit
uncertain what to do.

 
Answer #6    Answered On: Jan 02    

While exploring a bit I apache2/sites-available/default
and in default it has DocumentRoot /var/www

Could I not just change that to /home/wadesmart/public_html ?

 
Answer #7    Answered On: Jan 02    

You could do that if you wish. I was under the assumption that you wanted a
separate directory for each user.

 
Answer #8    Answered On: Jan 02    

Im not sure what you would think that since that is not what I said.

 
Answer #9    Answered On: Jan 02    

I read one thing and thought another. I guess that's one of the
reasons I shouldn't do two things at once.

 
Answer #10    Answered On: Jan 02    

I think you may just need to unmark the code, but I'm not certain. Try that
and go the other route if it doesn't work.

 
Didn't find what you were looking for? Find more on /var/www folder question Or get search suggestion and latest updates.




Tagged: