|
OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below. |
|
Thread Tools | Display Modes |
|
|||
httpd - subfolder access
Subfolder/pages (ie, https://domain.tld/subfolder/index.html) throws a generic "Access Denied" message. I want to make the page available to the internet.
I have permissions set to www:www and 0755 on /var/www/htdocs and all subfolders (which includes /var/www/htdocs/domain.tld). The behavior persists with or without TLS enabled. Here is the contents of my httpd.conf: Code:
ext_ip = "egress" server "default" { root "/htdocs/domain.tld" listen on $ext_ip port 80 directory index index.php location "*.php" { fastcgi socket "//run/php-fpm.sock" } }
__________________
crunkbong project: scripts, operating system, and more Last edited by Scripter; 5th December 2019 at 08:40 PM. |
|
|||
Quote:
Quote:
__________________
crunkbong project: scripts, operating system, and more |
|
||||
Have you tried ?:
Code:
ext_ip = "egress" server "default" { root "/htdocs/domain.tld" listen on $ext_ip port 80 directory index index.html index.php location "*.php" { fastcgi socket "//run/php-fpm.sock" } } Quote:
__________________
My best friends are parrots Last edited by PapaParrot; 6th December 2019 at 01:44 AM. |
|
||||
Since I am using "nginx" , I do not have httpd.conf ,nor httpd enabled , so like wise can not check/confirm, just guessing .
__________________
My best friends are parrots |
|
|||
Thank you for the replies.
Quote:
Quote:
Quote:
__________________
crunkbong project: scripts, operating system, and more Last edited by Scripter; 6th December 2019 at 07:08 PM. |
|
||||
See this October misc@ discussion on intermixing php and html index files.
https://marc.info/?t=157093321800003&r=1&w=2 The TL;DR is "nope." Not in the same location{}. |
|
|||
Quote:
Marking this "solved": httpd requires a consistent index extension.
__________________
crunkbong project: scripts, operating system, and more |
|
|||
Code:
server "default" { root "/htdocs/domain.tld" listen on $ext_ip port 80 directory index index.php location "*.php" { fastcgi socket "//run/php-fpm.sock" } location "/subfolder/*" { directory index index.html } } Last edited by ocicat; 18th December 2019 at 04:22 AM. Reason: Please use [code] & [/code] tags when posting file contents. |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
cms for httpd | psypro | OpenBSD General | 1 | 9th August 2016 08:51 PM |
New httpd and PHP | morophla | OpenBSD Packages and Ports | 21 | 31st August 2015 09:54 PM |
httpd features ? | 22decembre | OpenBSD General | 3 | 28th March 2015 09:46 PM |
httpd in OpenBSD 5.6 | jorisvh | OpenBSD Packages and Ports | 8 | 4th November 2014 12:14 AM |
httpd -DNOHTTPACCEPT | starbuck | FreeBSD General | 9 | 23rd August 2008 12:14 PM |