LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   where do i store my html files for my apache? (https://www.linuxquestions.org/questions/linux-networking-3/where-do-i-store-my-html-files-for-my-apache-2504/)

philfighter 05-14-2001 07:45 PM

lets say i want to create html files for public viewing on my apache server...where do i put them (the html files) so that a person can view them with an internet connection?

KevinJ 05-15-2001 01:22 PM

Provided you have the webserver running and you have access from the internet, then you have a setting in your httpd.conf file called "Document Root". That setting is where you would put the top layer of files. You can create sub dir's in there of course.

trickykid 05-15-2001 02:15 PM

Redhat by default is for root I think in /var/www, you can create it for other users setup on the machine in their own personal /home directories which is really the best place i think.
But like KevinJ said, anywhere you want, it should have a default directory, but you have the freedom to change that.

midhunadarvin 04-19-2015 03:25 AM

update
 
The default folder is "var/www/html" for my ubuntu 14.10

Habitual 04-20-2015 09:20 AM

DistrosDefaultLayout - Httpd Wiki

suicidaleggroll 04-20-2015 10:10 AM

This thread is 14 years old...that's gotta be some kind of record.

Habitual 04-20-2015 11:24 AM

Quote:

Originally Posted by suicidaleggroll (Post 5350183)
This thread is 14 years old...that's gotta be some kind of record.

and I took the bait. :(

Tim Abracadabra 04-21-2015 08:00 PM

And I clicked your link out of curiosity .. and learned something!

Thanks ;)

Habitual 04-22-2015 08:26 AM

Quote:

Originally Posted by Tim Abracadabra (Post 5350948)
And I clicked your link out of curiosity .. and learned something!

Then it did not go to waste!


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