LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   What is the "standard" place to keep Apache VirtualHosts in Slackware? (http://www.linuxquestions.org/questions/slackware-14/what-is-the-standard-place-to-keep-apache-virtualhosts-in-slackware-4175498314/)

Lockywolf 03-15-2014 02:53 PM

What is the "standard" place to keep Apache VirtualHosts in Slackware?
 
I doubt it is "/var/www/htdocs/server.domain".

Where would you suggest?

tux_dude 03-15-2014 03:07 PM

I wouldn't say there is one. You can pretty much place them where ever you choose under your webroot. I personally dislike my webroot under /var and think /srv is a better place for it. Don't forget to update you vhost file /etc/httpd/extra/httpd-vhosts.conf

kikinovak 03-15-2014 06:05 PM

Quote:

Originally Posted by Lockywolf (Post 5135140)
I doubt it is "/var/www/htdocs/server.domain".

Where would you suggest?

I put everything under /var/www/vhosts. Here's an example of the base directory structure:

Code:

[root@sd-48975:~] # tree -d -L 2 /var/www/vhosts/
/var/www/vhosts/
|-- default
|  `-- htdocs
|-- fuckmicrosoft
|  `-- htdocs
|-- fuckmicrosoft-webmail
|  |-- attach
|  |-- data
|  `-- htdocs
|-- kikinovak
|  `-- htdocs
|-- osteo
|  `-- htdocs
|-- osteo-montpellier
|  `-- htdocs
|-- osteo-montpellier-webmail
|  |-- attach
|  |-- data
|  `-- htdocs
|-- osteo-sommieres
|  `-- htdocs
|-- osteo-sommieres-webmail
|  |-- attach
|  |-- data
|  `-- htdocs
|-- radionovak
|  `-- htdocs
|-- radionovak-webmail
|  |-- attach
|  |-- data
|  `-- htdocs
|-- scholae
|  `-- htdocs
|-- scholae-compta
|  |-- build
|  |-- dev
|  |-- doc
|  |-- documents
|  |-- htdocs
|  `-- scripts
|-- scholae-secure
|  `-- htdocs
`-- scholae-webmail
    |-- attach
    |-- data
    `-- htdocs

cheers,

Niki


All times are GMT -5. The time now is 04:07 PM.