Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Thread Tools Display Modes
  #1   (View Single Post)  
Old 6th December 2019
Scripter Scripter is offline
Port Guard
Join Date: Apr 2018
Posts: 12
Default httpd - URI manipulation

I'm trying to run the equivalent of this nginx block in httpd:

location / {
    try_files $uri $uri/ /index.php?$args;
I've tried a variety of "location" and "match location" combos: "block return 301/302", "request rewrite", changing the location path. But, they're sending redirect errors and 404s.

Because I like the simplicity of httpd, I want to make sure this can be done before proceeding. If it is not possible, I'll just set up nginx on this system.
Reply With Quote
  #2   (View Single Post)  
Old 7th December 2019
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
Join Date: May 2008
Location: USA
Posts: 7,063

There's an example location match{} that uses request rewrite in the EXAMPLES section of the httpd.conf(5).
Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
simple image manipulation frcc OpenBSD Packages and Ports 7 28th March 2018 03:37 PM
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
pfctl anchors manipulation clarification on 4.7 sgeorge OpenBSD Security 0 2nd July 2010 05:16 AM
Blinkenlights for all: Cisco's building automation system vulnerable to manipulation J65nko News 0 27th May 2010 04:26 PM

All times are GMT. The time now is 01:40 PM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick