You are not logged in.

#1 2015-01-02 20:12:53

edm7707
Member
Registered: 2014-10-30
Posts: 6

Correct Directory Structure for Serving a Web Application from Arch?

At the moment I have an Apache web server hosting PHP based web pages out of /srv/http. This works for what I am doing at the moment, but i was wondering if there was a more professional\correct way to host a web application on Arch.

When would someone host a page in /srv/http vs /var/www ? ( is /www even widely used on archlinux) ?
Or is their a better way all together ( I read something about symbolic linking the 2 directories)?

Can anyone provide a sample of how they decided to set up their basic web directories ?

Any help is very much appreciated big_smile !

Offline

#2 2015-01-02 20:18:57

nomorewindows
Member
Registered: 2010-04-03
Posts: 3,415

Re: Correct Directory Structure for Serving a Web Application from Arch?

It mainly depends on the webserver you're using.  There's nothing about the difference between /srv/http versus /var/www.  As far as the web user is concerned they don't even know what directory structure you're using.


I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.

Offline

#3 2015-01-02 21:15:03

edm7707
Member
Registered: 2014-10-30
Posts: 6

Re: Correct Directory Structure for Serving a Web Application from Arch?

Thanks for the response! I guess I will keep serving pages from /srv/http until someone has a valid objection to hosting web pages in that way!

Offline

#4 2015-01-02 22:27:21

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Correct Directory Structure for Serving a Web Application from Arch?

Not a Sysadmin issue, moving to Networking...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB