[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 248
  • Last Modified:

Linux Server - How to set root web directory

I am running a linux server and I need to set the main directory that server web pages. Can someone tell me what file this is usually set in?

Thanks
0
elliottbenzle
Asked:
elliottbenzle
1 Solution
 
wiredpeaCommented:
/var/www

Open in new window

0
 
wiredpeaCommented:
Oh and the file is if usually set in is:

/etc/apache2/sites/available/[your site]

Open in new window

0
 
wiredpeaCommented:
Omg,

/etc/apache2/sites-available/[your-site-name]

It is friday afternoon......
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
farzanjCommented:
What kind of Linux distro are you using?

For Redhat family, you need to modify the file

/etc/httpd/conf/httpd.conf

And you need to modify the tag

DocumentRoot
0
 
PapertripCommented:
0
 
elliottbenzleAuthor Commented:
Thanks, that was it.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now