Edit httpd.conf file in linux?

DaRecordon

Well-known member
Registered
Joined
Oct 7, 2016
Messages
242
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
1,939
Replies
1
Views
1,367
Replies
20
Views
6,098
Replies
2
Views
1,215
Recommended Threads
Replies
7
Views
4,240
Replies
3
Views
2,819
Replies
1
Views
2,427
Replies
14
Views
5,748
Replies
18
Views
5,218

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