Questions tagged [lighttpd]

Lighttpd is a lightweight and high-performance event-driven web server.

Lighttpd is a lightweight and high-performance event-driven web server.

1125 questions
0
votes
1 answer

lighttpd mod_rewrite using ' in regex is not working

that's my mod_rewrite rules for lighttpd: url.rewrite-once = ( "^/label/([-'\./\+a-z0-9A-Z]+)/$" => "/index.php?page=label&label=$1", "^/riddim/([-'\./\+a-z0-9A-Z]+)/$" => "/index.php?page=riddim&riddim=$1", "^/([a-z]+)$" =>…
phew
  • 808
  • 1
  • 15
  • 34
0
votes
1 answer

lighttpd - don't terminate on invalid ssl key/cert?

I'm using lighty on an embedded device where power-users are allowed to manipulate the system configuration using an web interface. The users can upload an PEM file containing valid private key and certificate information. Now I wonder how to avoid…
Andi
  • 888
  • 2
  • 10
  • 24
0
votes
1 answer

How to encrypt/decrypt url for the whole server?

How can I encrypt and decrypt urls security reasons for the whole server? So https://darkhelmet/pages/mainframe.php?eduId=28107&displayID=&theme=theme1&version=4.0.3&demo= would be sent…
Radek
  • 13,813
  • 52
  • 161
  • 255
0
votes
1 answer

Lighttpd URL rewrite with negative matching

I'm trying to rewrite urls that have an image in them but not 'php', for example: I want to match this: http://domain.com/trees.jpg and rewrite it to this: http://domain.com/viewimg.php?image=trees.jpg But not match…
amba88
  • 759
  • 3
  • 9
  • 27
0
votes
1 answer

Configure lighttpd to different hosts for different client IPs

I have a server running lighttp. For testing purposes I would like to use a different host for a request if it originates from a specific IP. For example: $HTTP["host"] =~ "(^|\.)example\.com$" { #### for live system server.document-root =…
mritz_p
  • 3,008
  • 3
  • 28
  • 40
0
votes
1 answer

php & lighttpd code behind mechanism?

I inherited a website code base that I am trying to get familiar with. First of it is powered by lighttpd and php. My struggle with it is that the php executables aren't named as such, meaning instead of having a samplewebpage.php, the former…
0
votes
1 answer

Properly remove file extensions in URL in lighttpd

Could you advise me how to remove file extensions properly in lighttpd? So that: Root directory ("/") is not going to be rewritten to "/.php" Open directory if trailing slash is missing All files can be accessed without extension Another…
Atm
  • 183
  • 1
  • 10
0
votes
3 answers

Starting and Stopping Another Process when Mongrel Rails starts

I would like to start another process when mongrel rails starts up. Is there a way to do this? I am looking to start lighttpd which acts as a media server on my project every time rails starts and stop it every time rails stops.
user137848
0
votes
1 answer

lighttpd mod_rewrite url

My htaccess sample: Options +FollowSymlinks RewriteEngine on RewriteRule ^login$ index.php ErrorDocument 500 /login When i tried with url.rewrite: url.rewrite = ("^login$" => "index.php") It failed. Anything missing here? lighttpd.conf: …
Mezzan
  • 329
  • 1
  • 5
  • 18
0
votes
7 answers

why does browser attempt to download php file everytime I try to run that file?

I'm just starting out with using php and am having quite a bit of trouble. every time I attept to launch my php page my browser tries to have me download it. my php code is below.
Dylan
  • 47
  • 2
  • 8
0
votes
1 answer

Convert lighttpd rewrite rule to nginx

I have the following simple lighttpd rewrite rule: $HTTP["host"] =~ "^(app\.mydomain\.com)$" { url.rewrite-once = ( "^[^.]*$" => "controller.php/$1" ) } I am trying to port this rule to nginx and have the following: server { …
Justin
  • 42,716
  • 77
  • 201
  • 296
0
votes
1 answer

Lighttpd Rewrite Rule (match not having a period)

I am trying to figure out a rewrite rule for lighttpd that will behave in the following way: If the uri (the part after the protocol and domain) does not contain a period execute the rule. Examples: uri = "/people/add" Should run the rule. uri =…
Justin
  • 42,716
  • 77
  • 201
  • 296
0
votes
1 answer

Mysql Remote Access lighttpd

I have this server running LightHTTPD. I am trying access MySQL/PHPMyAdmin on this server. So far i have googled too much and tried so many things. I did this recently, edited this file /etc/mysql/my.conf, add bind-address = ip of my server;, then i…
Abdul Basit
  • 493
  • 11
  • 34
0
votes
2 answers

How do I get the address used to access a website in java

I'm sorry about the terible wording of my question but I wasn't sure how else to word it. Anyway, I have a Java Applet that is embbeded on a webpage. That webpage is then put up in the network using the webserver lighttpd. I need to from within the…
Dylan
  • 47
  • 2
  • 8
0
votes
2 answers

php custom C++ module works from command line, not on webserver

I made a custom PHP module with C++ and Swig. It works from the command line, but not with my webserver: php index.php php-cgi index.php Both of those work fine. I'm using lighttpd and php. I didn't configure these in any special way. I just…
genjix
  • 852
  • 2
  • 11
  • 21