DSM6 where's httpd.conf to add .pl AddHandler?

Questions about HTTP Access/Mods may go here
Forum rules
Please note the disclaimer before modifying your Synology Product.
DancingBear
Beginner
Beginner
Posts: 25
Joined: Sun Nov 30, 2014 10:41 am

DSM6 where's httpd.conf to add .pl AddHandler?

Postby DancingBear » Thu Mar 24, 2016 6:30 pm

I've just installed DSM6.

I now can't run a .pl perl script, because the upgrade has changed some of the webserver configuration.

I know what I need to do to fix it, but what I can't find is the right file to edit to fix it. In DSM the file would have been /etc/httpd/conf/httpd.conf-user

Can anyone help by pointing me at the right file for DSM6?

thanks in advance.
User avatar
HarryPotter
Honorary Moderator
Honorary Moderator
Posts: 18872
Joined: Mon Oct 23, 2006 12:48 pm
Location: Switzerland

Re: DSM6 where's httpd.conf to add .pl AddHandler?

Postby HarryPotter » Thu Mar 24, 2016 8:02 pm

/usr/local/etc/httpd/conf/httpd.conf
*Please do not Private Message me for support questions; leave it on the forum so all members can learn. Thanks!*

DS718+ / DSM 6.1.3-15152-7 / ST4000VN000-2AH166 / 16 GB RAM
DS713+ / DSM 6.1.3-15152-7 / HD501LJ + HD502IJ (RAID0)
DS415+ / DSM 6.1.3-15152-7

2 Squeezebox 3 + Boom

APC Smart UPS SUA750i
grayfox
Novice
Novice
Posts: 46
Joined: Fri Nov 14, 2014 12:32 am

Where are the httpd configure files...

Postby grayfox » Fri Mar 25, 2016 5:28 pm

I need to edit httpd.conf-user but the old directory /etc/httpd does not have the rascals, I have
just upgraded to version 6.xxx from the last 5.xxxx.

Where can I find the configuration files for httpd?

Help, Help, Help
grayfox
Novice
Novice
Posts: 46
Joined: Fri Nov 14, 2014 12:32 am

Re: DSM6 where's httpd.conf to add .pl AddHandler?

Postby grayfox » Sat Mar 26, 2016 8:22 pm

HarryPotter wrote:/usr/local/etc/httpd/conf/httpd.conf

I think httpd.conf gets regenerated with a reboot, be careful
grayfox
Novice
Novice
Posts: 46
Joined: Fri Nov 14, 2014 12:32 am

Re: DSM6 where's httpd.conf to add .pl AddHandler?

Postby grayfox » Sat Mar 26, 2016 8:54 pm

HarryPotter wrote:/usr/local/etc/httpd/conf/httpd.conf


yes, I added a comment at the bottom of httpd.conf and rebooted.

When I checked the file the comment was gone...

At this point the only solution I have is to name your config file with a .conf extension
and place the file in /usr/local/etc/httpd/sites-enabled.

There is a directive in httpd.conf that looks like

Code: Select all

Include sites-enabled/*.conf


Stuff there survives a reboot...

Return to “HTTP/Apache Mods”

Who is online

Users browsing this forum: No registered users and 1 guest