How To Set Lighttpd Proxy To Let Apache Run Cgi/perl Scripts?

Oct 24, 2008

I'm running both Apache (on port 81) and Lighttpd (port 80) on my VPS. I would like to have Apache run CGI/Perl scripts only for virtual hosts in the Lighttpd.conf. My Lighttpd.conf already has fastCGI enabled though.

View 3 Replies


ADVERTISEMENT

How To Setup Linux Proxy Server Apache+lighttpd

Apr 24, 2007

somebody know is possible on some way route traffic before come to web server (apache or lighttpd)?

I want to setup lighttpd on port 80 and apache on port 81 and I want visitors to go direct to apache or lighttpd without url:81 and that must work on this way if somebody visiting url1.domain.com that go to lighttpd on port 80 and if somebody visiting url2.domain.com that go to apache on port 81 and something must route it before lighttpd and apache (and get/post must work), is this possible on some way?

I know that lighttpd and apache can do it but I don`t need it on that way!

View 8 Replies View Related

Lighttpd Proxy

Nov 2, 2007

Would it be possible to have this kind of setup?

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?

View 1 Replies View Related

Apache And Lighttpd, Both Use Same Php.ini

Jun 3, 2009

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)?

View 5 Replies View Related

Apache Vs Lighttpd

Aug 9, 2009

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?

View 2 Replies View Related

Apache Or Lighttpd

Jun 5, 2009

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.

View 14 Replies View Related

Lighttpd Or Apache

Aug 6, 2007

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.

View 12 Replies View Related

Apache And Lighttpd Together

Dec 23, 2007

Is it possible to do this scenario:

[url]

[url]

So basically anything that comes out of "upload" directory will be served by apache and both on port 80 from the end-users point of view.

View 3 Replies View Related

Apache 2.2.x Vs Lighttpd

Jan 7, 2007

which web server you recommend for a vb forum? apache 2.2.x or lighttpd?

performance and resource usage....

View 1 Replies View Related

Switch From Apache To Lighttpd

May 14, 2009

i want to Migrate from apache to lighttpd and i found out hypervm can do it, just click Update. But i'm noob here and i need help.

- Does i need to check something to make sure Migrating from apache to highttpd without problem?

- Can i switch back later ( withou problem )?

View 4 Replies View Related

Lighttpd / Apache - Restarting The Server

May 30, 2009

We've been thinking about writing our own hosting control panel for our own
"tight" hosting setup, so that can alter the panel just to our needs without relying on updates from anybody else.

To read new configurations in Lighttpd or Apache, as far as I know, requires the software to be restarted (for example service apache restart). Are there any negative effects of this, I'm assuming that whilst being restarted there is a small amount of time during which the software is "down" and websites can't be accessed during that period (probably <1 second). Am I correct?

What is the best way to reload configurations into these http servers without service interruption? I notice that DirectAdmin seems to just restart Apache on any function that alters the configuration file - for example adding a new user.

View 4 Replies View Related

Lighttpd And Apache Configuration For A Subdomain

Jul 2, 2008

I was recently inroduced to lighttpd being able to run on apache with a different port. So I setup my lighttpd that way.

lighttpd.conf

Code:
server.modules = (
"mod_access",
"mod_fastcgi",
"mod_cgi",
"mod_accesslog" )

server.document-root = "/var/www/vhosts/domain.com/httpdocs/lighttpd/"

server.errorlog = "/var/log/lighttpd/error.log"

index-file.names = ( "index.php", "index.html",
"index.htm", "default.htm" )
and my httpd.conf

Code:
ProxyRequests Off
ProxyPreserveHost On
ProxyPass /lighttpd http://0.0.0.0:81/
ProxyPassReverse / http://0.0.0.0:81/
Now when I created a folder on my server's httpdocs /lighttpd/

everything runs smooth so I got the lighty to work for me.

Okay now that i figure it works I wanted to run one of my subdomain on lighty so that I can reduce the load on the server. Does anyone know how I can setup one of my subdomain to open with lighttpd and keep everything else on apache?

View 1 Replies View Related

Lighttpd - 95% Cpu Usage. Apache - All Ram Used, Swap Comes In

Oct 9, 2007

I've hired *name* to take care of my server, but it's just getting so frustrating, as it seems they can't fix my server/optimize it correctly.

I just want some input as to what the problem is here.

I got them to install lighttpd along with xcache.

After about 15-18 hours, the server's CPU slowly increases to be using 90-90%, giving me the 500 Internal Server Error.

I've asked them to optimize xcache and lighttpd, but I keep getting these responses:

Quote:

The should be pretty optimized. Xcache has limited optimization features.

Quote:

Lighttpd itself is pretty optimized, the problem is php. Php runs as its own binary and theres not many parameters that can be tweaked.

Is that even correct?

-------------------------

So I got them to enable apache, and disable lighttpd.

This time, it's the other way around.

My ram get's completely used up, forcing the server to use Swap; making the load shoot to 50+. CPU usage is fine the entire way.

-------------------------

This has been going back and forth, enabling/disabling lighttpd and re-enabling apache but a problem always comes up each time.

Am I asking for too much?

Server specs;
Intel C2D E6400
4GB Ram

There is only one IPB board on this server - nothing else.

Average users is 70-200 users within 15 minutes.

This is what I'm getting when lighttpd is on:

Code:
top - 22:56:02 up 18:46, 1 user, load average: 23.38, 22.84, 22.44
Tasks: 117 total, 17 running, 100 sleeping, 0 stopped, 0 zombie
Cpu(s): 95.0%us, 4.3%sy, 0.0%ni, 0.0%id, 0.0%wa, 0.2%hi, 0.5%si, 0.0%st
Mem: 4147196k total, 1346888k used, 2800308k free, 203144k buffers
Swap: 2907756k total, 0k used, 2907756k free, 712584k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
2401 mysql 15 0 318m 107m 3868 S 44 2.6 49:02.02 /usr/libexec/mysqld --defaults-file=/etc/my.cnf --basedir=/usr --datadir=/var/lib
3279 root 15 0 27712 15m 2900 S 12 0.4 10:33.81 /usr/local/lighttpd/bin/php-cgi
3272 root 16 0 29752 16m 2908 R 11 0.4 10:15.94 /usr/local/lighttpd/bin/php-cgi
3266 root 15 0 27536 14m 2920 S 11 0.4 10:40.14 /usr/local/lighttpd/bin/php-cgi
3270 root 16 0 27624 14m 2908 R 11 0.4 10:36.71 /usr/local/lighttpd/bin/php-cgi
3267 root 16 0 27796 14m 2972 R 10 0.4 10:35.22 /usr/local/lighttpd/bin/php-cgi
3268 root 15 0 28148 15m 3112 S 10 0.4 10:49.86 /usr/local/lighttpd/bin/php-cgi
3276 root 16 0 27696 15m 2900 R 10 0.4 10:29.73 /usr/local/lighttpd/bin/php-cgi
3269 root 16 0 28312 15m 2916 R 10 0.4 10:23.57 /usr/local/lighttpd/bin/php-cgi
3274 root 16 0 27924 15m 2912 R 10 0.4 10:44.51 /usr/local/lighttpd/bin/php-cgi
3275 root 16 0 29368 16m 2928 R 9 0.4 10:41.84 /usr/local/lighttpd/bin/php-cgi
3278 root 15 0 29432 16m 2876 S 9 0.4 10:28.52 /usr/local/lighttpd/bin/php-cgi
3271 root 16 0 26784 14m 2900 R 9 0.3 10:41.61 /usr/local/lighttpd/bin/php-cgi
3277 root 16 0 27156 14m 2928 R 9 0.4 10:31.07 /usr/local/lighttpd/bin/php-cgi
3265 root 15 0 28408 15m 2880 S 8 0.4 10:46.89 /usr/local/lighttpd/bin/php-cgi
3280 root 16 0 27036 14m 2880 R 8 0.3 10:43.20 /usr/local/lighttpd/bin/php-cgi
3273 root 15 0 24676 12m 2952 R 8 0.3 10:43.57 /usr/local/lighttpd/bin/php-cgi
3262 root 15 0 13356 11m 632 R 3 0.3 3:04.27 /usr/local/lighttpd/sbin/lighttpd -f /etc/lighttpd.conf
1 root 15 0 2032 648 552 S 0 0.0 0:00.36 init [3]
2 root RT 0 0 0 0 S 0 0.0 0:00.00 [migration/0]
3 root 34 19 0 0 0 R 0 0.0 0:00.00 [ksoftirqd/0]
4 root RT 0 0 0 0 S 0 0.0 0:00.00 [watchdog/0]
5 root RT 0 0 0 0 S 0 0.0 0:00.00 [migration/1]
6 root 34 19 0 0 0 S 0 0.0 0:00.00 [ksoftirqd/1]
7 root RT 0 0 0 0 S 0 0.0 0:00.00 [watchdog/1]
8 root 10 -5 0 0 0 S 0 0.0 0:00.00 [events/0]
9 root 10 -5 0 0 0 S 0 0.0 0:00.00 [events/1]
10 root 10 -5 0 0 0 S 0 0.0 0:00.00 [khelper]
11 root 11 -5 0 0 0 S 0 0.0 0:00.00 [kthread]
15 root 10 -5 0 0 0 S 0 0.0 0:00.00 [kblockd/0]
16 root 10 -5 0 0 0 S 0 0.0 0:00.00 [kblockd/1]

View 14 Replies View Related

Lighttpd And Apache With Cpanel Or Directadmin

Jun 21, 2007

Has anyone done this or currently running this setup? to try it with my directadmin server first but havent found very good documentation or howtos. Ive looked the last week or so and havent really found anything helpful. So if anyone is running such a setup Id like to know how you did it and how much better if any it is.

View 0 Replies View Related

Apache RewriteRule Convert To Lighttpd

Dec 31, 2007

at Lighttpd, and after trying for 2 hours to convert/rewrite apache's rewriterule into Lighttpd format, I became extremely confused.

Here's what I have in apache's rewriterule:

Code:
RewriteCond %{IS_SUBREQ} ^false [NC]
RewriteCond %{HTTP:Authorization} ^basic [NC]
RewriteCond /root/to/a/folder/%{REMOTE_USER} -f
RewriteRule (.*) http://www.domain.com/your_username_is_blocked.html

View 1 Replies View Related

Running Lighttpd Along Side Apache

Apr 19, 2007

How do I configure Lighttpd to serve images/javascript/css files that are littered about my websites? Can I just input the paths of all the directories that I want Lighttpd to serve from?

For example, I have 4 separate websites with each having a message board, main page etc... Could I have lighty serve the files from:

/var/www/html/site1/images
/var/www/html/site2/images
/var/www/html/site3/images
/var/www/html/site4/images
/var/www/html/site1/javascript
etc....

and have Apache serve the files from all the other directories?

View 8 Replies View Related

Apache :: Proxy Pass / Proxy Pass Reverse

Jun 10, 2013

I'm using the isapi rewrite module for iis 6 which uses the exact same syntax as mod_rewrite in apache. I'm not very well versed in apache and need getting this to work asap. Basically I have a directory in our website: URL....

I need to forward this to an IP address, for example to this address:100.12.33.45/folder.While keeping the original URL (www.xyz.edu/folder). I'm unsure of the apache syntax for this.

View 3 Replies View Related

Serving Domain Through Apache And Lighttpd At Same Time

Jan 11, 2008

There are 2 different domains with the same IP being served by Apache. I want one of the domains to be served by lighttpd, is it possible without having to change the IP of that domain?

View 11 Replies View Related

Trojan Activity - Running Perl With High CPU Usage, With User Apache

Sep 5, 2007

Running programs named Perl with Heavy CPU usage, with the ownership of user apache.

We found the problem on Fedora 3 and Fedora 6.

In our case, it was the result of a Trojan activity.

Quick Solution

Check the cron jobs of user apache
crontab -u apache -e
*/1 * * * * perl /tmp/.tmp/tmpfile
delete the cronjob entry.
Also delete the file /tmp/.tmp/tmpfile
also added "apache" to the file /etc/cron.deny

That's all

Problem and solution in detail....

View 1 Replies View Related

Apache :: Mod Proxy With Failover

Jul 13, 2014

I have the following setup in my apache vhost:

Code:

ProxyPass /abc http://www.newest.com/
ProxyPassReverse /abc http://www.newest.com/

I want to setup a failover approach in which if after a particular timeout say 10secs the load shifts to some other website like Refer.com | The world. The timeout should be in Proxy Pass and if timeout occurs it shifts to Refer.com | The world

View 1 Replies View Related

Apache: Setup A Proxy For One Page

Mar 5, 2008

Im using AJAX on my site and i need to access a seperate server instance on a different port. AJAX wont allow me to do that so i want to use Apache as a proxy but only for one page.

View 4 Replies View Related

Apache :: 2.4.6 - Reverse Proxy Cache

Nov 19, 2013

I have Apache 2.4.6 on a Windows Server 2008 (windows build from apachelounge). I want to use it as reverse proxy cache with mod_cache_disk.

My configuration is:

Code:

<IfModule cache_module>
<IfModule cache_disk_module>
CacheRoot C:/temp/cache
CacheEnable disk /
CacheDirLevels 2
CacheDirLength 3

[Code] .....

Loading a page with ~150 files (most images and js files) i keep runing into "locked requests" that are not comeing back and block the whole page from finishing loading. The files differ every time.

I see this warnings in my error.log (looks like they are connected to the behauviour above).

Code:

[Tue Nov 19 20:38:10.890013 2013] [cache_disk:warn] [pid 216692:tid 15924] (OS 5)Access is denied. : [client x.x.x.x:58963] AH00699: rename tempfile to file failed: C:/temp/cache/aptmpcBQArf -> C:/temp/cache/H8Cta/9ha4U/Uhhhs/OlQfU/1Q.data,

[Code] .....

View 1 Replies View Related

Apache :: Reverse Proxy With Several Websites

Apr 22, 2014

I m trying to setup a reverse proxy with several site that will redirect the request into several internal server.I wanted to do that with several VirtualHost (like shown below). Unfortunatly whatever I type on my browser testsupport.xxxx.com or support2.xxxx.com I m redirected at the first of the config file (in the exemple http://10.253.12.41/.Is it the ServerName key that will redirect to the right proxypass ?

<VirtualHost *>
ServerName testsupport.xxxx.com
ProxyRequests Off
ProxyPass / http://10.253.12.41/
ProxyPassReverse / http://10.253.12.41/
</VirtualHost>

<VirtualHost *>
ServerName support2.xxxx.com
ProxyRequests Off
ProxyPass / http://10.253.11.31/
ProxyPassReverse / http://10.253.11.31/
</VirtualHost>

View 10 Replies View Related

Apache :: How To Force SSL On Reverse Proxy

Nov 23, 2014

We are struggling to configure our Apache reverse proxy (on WIN 2008) server to force https.

We have the cert installed on the proxy server, and it seems to be working but we are unable to force connections to https: and the site is still available via http:

How do you enforce https on the site?

reading read about the .htaccess file, virtual hosts but still having a hell of a time putting it all together

Internet -> SSL -> Apache 2.2 -> HTTP -> web app

View 2 Replies View Related

Apache :: Mod Proxy With F5 Load Balancer

May 30, 2013

I have a setup where Apache connects to a F5 load balancer which in turn balances between two jboss app servers.

Apache using mod_proxy -> F5 (hardware load balancer) -> 2 jboss application server

It uses jsessionid. I sometimes get 500 errors for the post methods. I think the request goes to the incorrect jboss server because of the F5 load balancer. Everything works just right when I shutdown one of the jboss app servers.

View 1 Replies View Related

Apache :: 2 Kerberos SSO Through Reverse Proxy

Apr 24, 2014

I'm trying to do a setup of alfresco.It has two basic sites. [URL]. Both use kerberos authentication. Alfresco has SSO and share has not. Both sites are on the same server (its just one site but different subs)

I want to put this behind a reverse proxy to eliminate the servername:port combination.

When I put it in a normal config with ajp everything works fine for the share website. I can login without problems. Not so however for the alfresco website. I get a browser login request (not the alfresco one) when i enter my credentials he asks them again and again and then he ends on the regular login page of alfresco at which point everything works. The username I entered is displayed at this point. When I do not enter my credentials correct I do not reach the page.

If I remove the SSO from the alfresco website everything is normal (but i have to login)

View 3 Replies View Related

Apache :: Proxy To SP Can't Log In After Fixing 401error?

Aug 12, 2014

I have apache 2.2 on Linux going through the a firewall to a backend sharepoint server. My sharepoint application has anonymous and authenticated traffic. This works fine most of the time but we randomly get (104)Connection reset by peer: proxy: error reading status line from remote server. I was able to fix this by adding *SetEnv force-proxy-request-1.0 1 *SetEnv proxy-nokeepalive 1 *RequestHeader unset Expect early But after I added this I was then no longer able to log in. I would receive a *HTTP/1.1" 401 my understanding is KeepAlive is required for NTLM to work so making sure I can stop the connection resets which are unacceptable and still allow the authenticated users to log in.

View 4 Replies View Related

Apache :: Setting Up Reverse Proxy

Apr 6, 2015

I'm currently in the process of configuring a red hat linux server as a proxy server for a number of back end web servers. I set up reverse proxying to hide the web server url's, but I've run into a problem with the second web server, because some of the directory structures are identical on both servers.

View 2 Replies View Related

Apache :: Reverse Proxy Redirect

May 14, 2013

I am having a little trouble getting a reverse proxy redirect to work. I have a Linux server running Apache2. I have installed SABnzbd+, Sickbeard, Couchpotato & Headphones onto this device. I want to access SABnzbd+, Sickbeard, Couchpotato & Headphones from the outside world (via a DYNDNS name).

I know that I could just forward the ports through the router, but I don't want all the extra ports opened. I was told that I can have Apache to do a revers proxy, but I can't get it to work. I basically want to be able to do type myname.dyndns.org/sickbeard instead of typing in myname.dyndns.org:8081.

View 1 Replies View Related

Apache :: Open Proxy On Website

May 23, 2015

I'm trying to fix a problem with open proxy on my website. It's running ubuntu & apache2. I also run pfsense for a firewall with snort. I have a SSL for the website, so I have regular port 80 redirect to https.

At first I did notice right away when I checked & saw this happen that proxy was turned on. So I got that turned off.

My firewall is still allowing these bad IPs to port 80. I would like to figure out what I could turn on the firewall or snort to stop those connections in addition to what needs fixing in apache. I've read the solution is to make the redirects go to a 403 error page.

I also tried adding a mod_security rule but ended up blocking all people from website, though I may have accidentally turned some other rules on too.

There are a few different problems it looks like.

First - It looks like they're trying to connect to my HTTPS then redirect to an ad through my domain name?
Second - It looks like they're still trying to use my website for open proxy but directly accessing ib.adnxs.com through my port 80. My logs indicate I'm redirecting to a 301 page.

View 2 Replies View Related

Apache :: 2.4.3 Mod Proxy Not Stable In Production

Dec 25, 2013

Have run through a bunch of threads on mod_proxy race conditions, possible causes, and potential solutions.

What is the status? Is there a fix for this, maybe in 2.4.7?

On 2.4.3 in production we literally have 10K errors in the past 2 months along the lines of:

Code : AH00898: Error reading from remote server returned by...

Application server (JVM webapp) issues no errors at the time of mod_proxy error occurring. It seems then that mod_proxy is sporadically broken, which is horrible for end users accessing an otherwise rock solid production application.

View 8 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved