Edit httpd.conf file in linux?

DaRecordon

Well-known member
Registered
Joined
Oct 7, 2016
Messages
251
Points
18
I need to add virtual host into this file but I don't know where httpd.conf is located and how to edit it in Linux? I am using Centos 6 on a VPS.
 

LJSHost

Well-known member
Hosting Provider
Registered
Joined
Jul 5, 2016
Messages
1,031
Points
63
Code:
 /etc/httpd/conf/httpd.conf
Should be there, it could have another location depending what / if a panel is used.
 

24x7serverman

Well-known member
Hosting Provider
Registered
Joined
Jul 25, 2017
Messages
651
Points
28
The httpd.conf file location depend on the operating system which you are using. If you are using the CentOs then location of the file is /etc/httpd/conf/httpd.conf.

Please note, it's not recommended to update the httpd.conf file. If you are very sure about the working of it then only update it. Before making any changes, take the backup of the file. Because if you will remove the single line from the httpd.conf file then overall working of the server will stop.
 
Newer Threads
Replies
2
Views
3,474
Replies
1
Views
2,472
Replies
20
Views
10,817
Replies
2
Views
2,228
Recommended Threads
Replies
19
Views
11,947
Replies
35
Views
24,620
Replies
4
Views
7,424
Replies
1
Views
3,646

Latest Hosting OffersNew Reviews

Sponsors

Tag Cloud

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top