A user from USA clicks www.domain.com/video/vid.flv and they go to the USA server to download.
A user from Europe clicks the same link and they go to Netherlands server.
A user from Asia clicks the same link and they go to Hong Kong.
How can I configure Lighttpd to point *.flv to a specific server based on location. I don't want the www.domain.com to change, I would like it to always show www.domain.com but point to different countries depending on where the person is located.
to getting a second server, specifically for downloads for my site. Without going into too much detail, my website requires that I get a separate server for downloads, and another for the webserver.
I've already gone ahead and configured the server I want; however, I'm trying to do something different from what I'm used to. I'd like to use Lighttpd, instead of apache, as well as not having cPanel installed on the server. I'd still have cPanel and Apache on my regular webserver, but I'd rather keep my download server relatively clean.
So, once I get my server, and I install Lighttpd, how do I go about setting up everything so that my two servers can communicate? I'd like the download server to be something like: download.mydomain.com , so would I have to set up an A Hostname on my webserver?
If you know how x-sendfile (lighttpd) and X-Accel-Redirect(Nginx) headers working you know that in php script I can use this headers when I want to download some files direct with lighttpd/nginx and not with php, that is great, but I need to know is possible to set some header in lighttpd/nginx to execute some php script/code after download finished (to back to php)?
So basicly I got a vps and am using lxadmin *renamed* and with ssh and lxadmin the lighthttpd wont start and it is installed under the centos hostinabox distro.
my php.ini had some changes (/etc/php.ini). Today i have switch from apache to lighttpd, do i need to edit another php.ini file ? Apache and lighttpd use the same php.ini ( /etc/php.ini)?
Actually I am going to use phpprobid system and it has in built function for mod rewrite but I think it is for apache as if i turn it on I cant access pages
I am struggling to get this .htaccess file to work with lighttpd, i am not a coder so its very hard for me to fix it, hopefully if someone knows how can tell me how to write rewrite code that will get it working. {quote}
1. Comment the 2 lines below if the server returns 500 errors! Options -Indexes Options +FollowSymLinks
#Uncomment following lines if you want to use image caching! #<IfModule mod_expires.c>
1. Uncomment following lines if Apache doesnt support MultiViews! <IfModule mod_rewrite.c> RewriteEngine On 1. Uncomment the 2 lines below if you are using www.domain.com # as the baseurl for the site and users access your site # via domain.com (THIS IS REQUIRED FOR JQUERY TO WORK) #RewriteCond %{HTTP_HOST} ^domain.com [NC] #RewriteRule ^(.*)$ http://www.domain.com/$1 [L,R=301]
1. Edit below lines and set to 2. ErrorDocument CODE /RELATIVE/error.php 3. If the script is installed in the default document 4. root then relative is null. #ErrorDocument 401 /error.php #ErrorDocument 403 /error.php #ErrorDocument 404 /error.php {/quote}
looks like its calling the rule from loader.php file, now how can i convert this to lighttpd language,
Until recently, it seemed like everything I read about a server indicated that Apache was king. I have never read anything that has given me any reason not to use Apache.
However, about a year ago when I discovered Django, I discovered Lighttpd. From everything I've been able to read, Lighttpd seems to be a better web server, but still don't know very much at all about Lighttpd.
I'm fairly comfortable with Apache, although I've never cared much for it. I have a feeling that I'll like Lighttpd quite a bit more from the very little that I do know about it. I'm wondering if I should even consider switching.
For one, it seems that everyone knows how to work with Apache and Lighttpd seems to be far less common. Apache also seems to be much more established which leads me to believe that it's a safer choice. Nonetheless, I still really want to give Lighttpd a shot. And, judging from what I've seen about Django and Lighttpd, Lighttpd seems to be a better choice when working with Django.
What do you think? Should I stick with Apache since I already know how to use it? Is Lighttpd worth the time to learn or is Apache just too good?
I wanted to know what do you prefer as server apache or lighttpd , though I am running lighttpd and have no issue except that there is too much work for mod rewrite and it effects search engine, so I was thinking to use apache instaed of it will it be possible to install apache over lighttpd or will I have to go for fresh install.
I'm about to set my own permalink rules in Wordpress.
My VPS is running LxAdmin on CentOS and I have lighttpd installed. I've read I need to edit lighttpd.conf but I don't know which application I should use. The file is located in /etc/lighttpd/ but have no idea how to gain access.
I keep getting a segmentation fault after a few hours when I leave lighttpd on. It doesn't seem like much resources are being used and its serving about 60mbit/s. There's nothing in the error or log file.
I'm using CentOS 2.6.18-92.1.13.el5 and lighttpd-1.5.0-r1992 Here's the config: server.modules = ( "mod_access", "mod_trigger_b4_dl", "mod_status", "mod_proxy_core", "mod_proxy_backend_fastcgi", "mod_uploadprogress" ) upload-progress.progress-url = "/progress" server.network-backend = "gthread-aio" server.max-fds = 15000 server.max-connections = 10000 server.event-handler = "linux-sysepoll" I've actually been having this issue since I've moved to lighttpd 1.5, 1.4 was working fine but I need the features in 1.5. I've tried changing the event handler and network backend to no avail.
How can I at least find out what's causing the error?
I just recompiled PHP 5 with MySqli in cPanel and Mysqli is working fine under Apache, but it doesn't work under lighttpd. I can see the MySqli module in phpinfo when I run it under Apache, but there's no MySqli module when I run it under lighttpd. So how can I fix it to use MySqli with lighttpd?
I'm going to see what Lighttpd on cPanel does today. I've asked my VPS provider (Zone.net) to perform this and provided them several links too. Their manager said they should be able to and so I submitted a ticket .
Having constant and random downtime with Lighttpd being that for no reason connections get refused and my server load is low, that I think maybe get Litespeed.
1) 25k members with 100 - 125 members / guest being online at all times. about 400,000 page views per month 2) software pages static html about 200,000 page views per month. 3) a script library which get about 200,000 page views per month 4) i get about 2000 - 2500 software downloads per day. each download between 1mb to 3 mb give or take
i would estimate a total of 1 million page views per month...
a) i am using Apache right now would lighttpd help? b) if yes, how does one go about switching from Apache to Lighthtpd c) is it easy to manage and optimize lighttpd? d) can i just ask for lighttpd to be installed as default by any hosting company out there? e) does lighttpd support cPanel?
currently i am on a AMD Athlon(tm) 64 X2 Dual Core Processor 3800+(2 Ghz) with 2 GB RAM.
my server loads are sky high - anywhere between 10, 15 and 20.
But for php, it's totally not good for me I just install lighttpd and php.
By [url]
Now It takes about 10 seconds for the server to response.
Here is a part of config file ############ Options you really have to take care of #################### server.max-keep-alive-requests = 4 server.max-keep-alive-idle = 4 server.max-read-idle = 60 server.max-write-idle = 1024 server.max-fds = 8192
php.ini using the default one Here is the link to it [url]
And only about 200 connections. the load average is only 0.02.
When I check the error log 2007-11-08 12:38:46: (server.c.1253) NOTE: a request for /view_video.php?viewkey=f8e13f14b405e038deb6&page=&viewtype=&category= timed out after writing 13068 bytes. We waited 1024 seconds. If this a problem increase server.max-write-idle 2007-11-08 12:40:07: (server.c.1253) NOTE: a request for /view_video.php?viewkey=b9530df88f7f002e78ea timed out after writing 13068 bytes. We waited 1024 seconds. If this a problem increase server.max-write-idle
I´m using cpanel with the latest mysql Ver 14.7 Distrib 4.1.22, for pc-linux-gnu (i686) using readline 4.3.
I´m trying to access MySQL from lighttpd, but I´m getting this error:
Warning: mysql_connect() [function.mysql-connect]: Client does not support authentication protocol requested by server; consider upgrading MySQL client in /home/jkl/public_html/login.php on line 9
Seriously though, is there no such thing as a company that provides advanced management services that covers the installation and maintenance of lighttpd and some addons.
Lighttpd running on port 80 to serve only static content, and if it receives php requests, to forward the request to Apache running on another port. Not sure if this is useful [url]
If it is possible, is there any example of lighttpd conf where this can be done?
For a year now I've been running my server with Lighttpd. It's worked out well so far, but now that I have a new box I'm reconsidering.
Lighttpd does not support .htaccess files which is a bit of a pain, and doesn't have the same support by apps like Apache does. Given that I get very little traffic to my box (it sits idle most of the time) I am considering Apache.
How is security between Apache and Lighttpd? I know Apache has things like mod_security and mod_evasive, but I've never really checked how Lighttpd compared.