Jump to content

Setting Folders in Apache


Guest Jose
 Share

Recommended Posts

My Apache web (html) files are located at /var/www/html/. But since I wish to put two different web sites in the /var/www/folder for development purposes.

 

Should I create a sub folder for each?

For example /var/www/html/site1/ and /var/www/html/site2 or should I put both new folders in /var/www/? What do you guys do?

Link to comment
Share on other sites

i always just add a new folder within /var/www/html/

 

you can just add a index.html in /var/www/html/ & add links to the different folders index pages.

 

apaches document root is /var/www/html so if you wanted to put a folder in /var/www/ you would need to change apaches doc root.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...