Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I already setup a conf for a site in the /etc/httpd/sites-available. However, I am wondering how can I enable this, like a2ensite in Debian, wherein the conf file will appear in the sites-enabled?

share|improve this question
add comment

2 Answers

up vote 1 down vote accepted

Mimicking the Debian config system isn't difficult. In your Apache config, you have to include everything in /etc/httpd/sites-enabled. To activate a site, you create a link from the relevant file in sites-available into sites-enabled, which is basically the only thing that a2enable does on Debian.

share|improve this answer
I did ln -s but when I restart it failed to start the httpd. –  fishcracker Jan 28 '13 at 9:51
Please add the failure messages (and your current config, if possible) to your question. –  SvW Jan 28 '13 at 10:45
add comment


ln -s /etc/httpd/sites-available/mysite.com /etc/httpd/conf.d/mysite.com


unlink /etc/httpd/conf.d/mysite.com
share|improve this answer
add comment

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.