Replies: 22 comments
-
Could you test these lines instead:
|
Beta Was this translation helpful? Give feedback.
-
That is my big problem with configs like that, I become always a error: FYI: And thats the reason why I write something new :) |
Beta Was this translation helpful? Give feedback.
-
Be careful of this: be sure to save the file with
Could you post this line? |
Beta Was this translation helpful? Give feedback.
-
Here is my complete file:
Line 36 (The error show now When I delete the But what do you mean with |
Beta Was this translation helpful? Give feedback.
-
What is your IDE? (Notepad++ / Visual Studio / Sublime Text / Atom / ...) |
Beta Was this translation helpful? Give feedback.
-
I work on the command line :) I'm not a developer and so I don't use a IDE. |
Beta Was this translation helpful? Give feedback.
-
Hmm... Try:
|
Beta Was this translation helpful? Give feedback.
-
Thanks for you work, but you also declarine two With the follow code it works for me AND it will effect only the right subdomain and not the other to (like my code above):
@LeoColomb If there's okay please write it in the wiki or comment if you find something that is wrong. |
Beta Was this translation helpful? Give feedback.
-
In fact I dislike your proposal:
|
Beta Was this translation helpful? Give feedback.
-
My problem with this code:
is that I become a 404 - Not found What my question is: |
Beta Was this translation helpful? Give feedback.
-
Have you enable FastCGI? $ sudo lighty-enable-mod fastcgi
$ sudo lighty-enable-mod fastcgi-php |
Beta Was this translation helpful? Give feedback.
-
fastcgi was already enabled, but I have to enable fastcgi-php and so edit my code:
But I become still the error 404 by visit the url http://url.heubergen.me/test |
Beta Was this translation helpful? Give feedback.
-
I just want to say that I use the follow config now:
Only to use with lighttpd 1.4.35 or newer. Thanks for your help @LeoColomb, I will close this issue now. |
Beta Was this translation helpful? Give feedback.
-
@heubergen Thanks a lot for your feedback and your tests! Nevertheless, I prefer to keep this issue opened because the solution isn't adequate to the current YOURLS behavior. |
Beta Was this translation helpful? Give feedback.
-
Hi,
|
Beta Was this translation helpful? Give feedback.
-
I have to re-open that... I am running yourls 1.7.2 and the latest lighhtpd. $HTTP["host"] == "go.server.com" { Unfortunately all other vhost will also be redirected to "/yours...". Any idea? |
Beta Was this translation helpful? Give feedback.
-
@okoestner: I know your request is old, but I believe it's because you are using Back to the original issue, I wanted to keep the functionality as close to the Apache one, and so far this seems to work for me:
The I'm using |
Beta Was this translation helpful? Give feedback.
-
One Covid pandemy later... The base URL (like go.server.com) works. Even the /admin URL works. 2020-10-01 23:11:17: (mod_fastcgi.c.2543) FastCGI-stderr: PHP message: PHP Fatal error: Uncaught RuntimeException: The gmp or bcmath extension must be installed to read this database. in /mnt/nas/maschine/www/go.server.com/includes/vendor/maxmind-db/reader/src/MaxMind/Db/Reader/Decoder.php:295 Any idea? |
Beta Was this translation helpful? Give feedback.
-
The error message tells you what's missing. Install either gmp or bcmath PHP extension. |
Beta Was this translation helpful? Give feedback.
-
But how? How do I determine what is missing? And how can I install it? |
Beta Was this translation helpful? Give feedback.
-
Both of those extensions are missing. You need at least one of them. How to install depends on your platform/OS, how PHP itself was installed, etc. |
Beta Was this translation helpful? Give feedback.
-
Thanks a lot, "dgw". |
Beta Was this translation helpful? Give feedback.
-
Hi Devs
Maybe you will add the follow informations to your wiki:
To run YOURLS with lighttpd you have to add the follow lines to your lighttpd.conf:
# Rewrite rules for YOURLS
url.redirect = (
"^/([0-9A-Za-z]+)?$" => "/yourls-go.php?id=$1",
"^/([0-9A-Za-z]+)?\+$" => "/yourls-infos.php?id=$1" )
Beta Was this translation helpful? Give feedback.
All reactions