Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

/var/www

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
WolfG
Posts: 31
Joined: 2015-10-12 11:06
Has thanked: 2 times

/var/www

#1 Post by WolfG »

Greetings!

What is the explanation for using /var/www as the webdirectory instead of the /srv directory?
Should'nt the /var directory being used for variable data and the /srv directory vor service data?

I am new to debian-9 and being just curious
Wolf

User avatar
Bloom
df -h | grep > 90TiB
df -h | grep > 90TiB
Posts: 504
Joined: 2017-11-11 12:23
Been thanked: 26 times

Re: /var/www

#2 Post by Bloom »

That's a historical decision. You could argue that the contents of a website are variable data. The /srv directory was intended for network shares, but those are nowadays mostly under /mnt of /media.

WolfG
Posts: 31
Joined: 2015-10-12 11:06
Has thanked: 2 times

Re: /var/www

#3 Post by WolfG »

Ok, yes; makes sense :-)
thanks Wolf

macky
Posts: 9
Joined: 2018-11-11 16:18

Re: /var/www

#4 Post by macky »

Yes I agree, that's why most common installation of apache, ngix default directory is /var/www because it's a data that change constantly.

Post Reply