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,923
Replies
1
Views
1,357
Replies
20
Views
6,083
Replies
2
Views
1,212
Recommended Threads
Replies
52
Views
10,256
  • Locked
Replies
8
Views
6,503
Replies
2
Views
2,091

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