DEV Community

Discussion on: Drupal 8 with Composer on OpenBSD

Collapse
 
backtobo profile image
Roberto Sabbi

Hi Heddi, I was very pleased to find your articles around OpenBSD. I have been a fan since 2001 (I saw the birth of PF), using it for most of my personal projects. Your article gave me the spin to set up my own web server, as I wouldn't trust anything else than OBSD in the wild. That's also the reason why I insist on using httpd.
So please, keep writing about it.
Now my question: I have set up httpd exactly as in your article, minus the obvious adaptations. Drupal works fine except for url aliases. I am using OBSD 6.6 and Drupal 8.8.5.
To my limited understanding, the issue is with the location match, not capturing properly. I also suspect that something of the original config may have gone lost with escaping. I have tried to fiddle with the lua pattern to no avail. Do you have the same issue?

Collapse
 
nabbisen profile image
nabbisen • Edited

Hello, Roberto.
Thank you for your comments.

I'm sorrry I don't use URL aliases. Therefore, yours is the first to me.
Then I tried to test to create a Drupal alias: /test/3 (virtual path) -> / (real path). And I ran 2 cases:

  1. my.domain/test/3 -> my.domain/
    • Result: Failed
  2. my.domain/?q=test/3 -> my.domain/
    • Result: Success

So, how about using ?q=... query params?
Alternatively, If you want to configure it via httpd.conf, "request rewrite" might be available. I have met a similar issue in configuring Directus.

Besides, I'm happy to get such a chance to know better about Drupal, because I haven't used it well enough 😊


Well, I'm also pleased to get a message from OBSD earlier-users like you. Thank you, again.

I saw the birth of PF

That's great !
I'm making efforts to get familiar with PF and relayd... 😅