I was testing virtual hosting and doing a lot of stuff. Then I suddenly delete my httpd.conf file using rm
command.
I've deleted httpd.conf.bak and original/httpd.conf. Well now I'm guessing i don't have any way to gain access on httpd.conf.
Can any one please upload their httpd.conf from original folder.
Anyone please kindly upload your /etc/apache2/original/httpd.conf.
PS: I've tried copying httpd.conf from Reinstall/restore Apache httpd in OS X I'm getting load module error so trying to solve it.
My system: OS X El Capitan 10.11.5
Best Answer
The file /etc/apache2/original/httpd.conf (in OS X 10.11.5) has the following content with three trailing empty lines:
The file /etc/apache2/httpd.conf – which differs slightly from the one above – has the following additional content at the end with two trailing empty lines:
A more general way to restore accidentally deleted files is using Pacifist. After downloading and installing Pacifist and downloading an OS X Installer.app (i.e. 10.11.5) you can reinstall/restore single files or folders after opening the OS X installer app with Pacifist: