11

I'm a bit scared to ask this because I got so many negative votes for simply asking a question last time, but here goes;

Where in the Linux (Ubuntu) directory structure is it 'normal' to put public and private website files.

Say I have a server and I want directories;

mysite1.co.uk/
mysite1.co.uk/www/
mysite2.co.uk
mysite2.co.uk/www/

where would they normally be put?

Update: I'm using Nginx (not Apache).

6

2 Answers 2

6

Under /var/www. But this is not a convention you have t follow. You can put them wherever you want, as long as Apache has access to it.

2
  • Thanks. Actually I'm using Nginx not Apache. Does that change your recommendation? Aug 9, 2011 at 19:52
  • no. Doesn't change anything.
    – mailq
    Aug 9, 2011 at 19:54
1

I use

/var/vhosts/domain.name/html
/var/vhosts/domain.name/logs

but /var/vhosts is a symlink to /srv/vhosts in my case. I had my cake and ate it.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .