httpd.conf file on DSM 6.0.2-8451 Update 7

Questions about HTTP Access/Mods may go here
Forum rules
1) This is a user forum for Synology users to share experience/help out each other: if you need direct assistance from the Synology technical support team, please use the following form:

https://account.synology.com/support/support_form.php?lang=enu



2) To avoid putting users' DiskStation at risk, please don't paste links to any patches provided by our Support team as we will systematically remove them. Our Support team will provide the correct patch for your DiskStation model.
dmy
I'm New!
I'm New!
Posts: 8
Joined: Sat Jul 05, 2014 3:12 pm

httpd.conf file on DSM 6.0.2-8451 Update 7

Postby dmy » Wed Jan 04, 2017 10:55 pm

Hi,

just upgraded my RS812+ to the lastest DSM and I have one issue. I have an intranet website in the homes folder which needs to access data outside its www folder. To overcome a cross origin block I had to add my own .conf file in the folder

Code: Select all

usr/local/etc/httpd/sites-enabled/

The original httpd.conf file was in the folder

Code: Select all

usr/local/etc/httpd
and contained the line "include sites-enabled/*.conf", which loaded my .conf file and everything worked. Reason for not directly editing the httpd.conf file was that I heard it will be overwritten on a reboot.

Now the folder

Code: Select all

usr/local/etc/httpd/
is empty, where did the httpd.conf file go? A reboot of the Rackstation did not help. I stopped the Apache HTTP server 2.2 in Webstation and restarted it, still nothing.

Thanks and best regards,
dmy
juraj
Student
Student
Posts: 63
Joined: Fri Feb 10, 2012 2:34 am
Contact:

Re: httpd.conf file on DSM 6.0.2-8451 Update 7

Postby juraj » Thu Jan 05, 2017 5:59 am

Not sure but you might need to recreate it.

Regardless, I think this is a wrong forum section and you probably won't find an answer you're seeking here.
Synology enthusiast
Founder of All Secure IT Services
dmy
I'm New!
I'm New!
Posts: 8
Joined: Sat Jul 05, 2014 3:12 pm

Re: httpd.conf file on DSM 6.0.2-8451 Update 7

Postby dmy » Thu Jan 05, 2017 9:07 am

Why would a configuration issue be wrong in the configuration subforum?

Anyhow, here's the solution:
- Under DSM 6 (it believe actually under 6.0.2, not earlier) the Apache Server was moved into a separate package, so it can be installed and configured in the package center. This led to the httpd conf file now being in a different folder (usr/local/etc/apache22/conf/) than before. My separate .conf file was moved with the update (!) (to /usr/local/etc/apache22/sites-enabled) and my issue seems to relate to a perl package problem.

Return to “HTTP/Apache Mods”

Who is online

Users browsing this forum: No registered users and 1 guest