Adult Script Pro Community Forums

The forum is here for legacy reasons. No new posts will be created. User registration is disabled! If you have any questions, please email us or check https://www.adultscriptpro.com for more details!

You are not logged in.

#1 2011-11-16 16:26:29

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

[HOWTO] Running both Apache and Lighttpd on port 80 (with CPANEL)

Hi,

After a lot of debugging i found a method to run both Apache and Lighttpd on the same port (80). While this is easy, preventing Cpanel from overwritting the apache configuration and stopping lighttpd was not so easy.

1. You need to reserve a IP just for lighttpd. For this go to WHM -> Apache Configuration -> Reserved IPs.
2. In lighttpd.conf use:

server.bind = "YOUR-RESERVED-IP-HERE"

This is useful because some ISP's (mostly from USA) dont allow visitors to connect to port 81. The other method would be to use proxy in Apache, but i dont recommend that, its to slow.


Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds

Offline

#2 2011-11-17 04:25:27

Pornogoddess
Member
From: NY
Registered: 2011-01-12
Posts: 183
Website

Re: [HOWTO] Running both Apache and Lighttpd on port 80 (with CPANEL)

Thank you for doing this! :-)

Offline

#3 2011-11-22 03:11:44

coderphp6
Member
Registered: 2011-04-20
Posts: 65

Re: [HOWTO] Running both Apache and Lighttpd on port 80 (with CPANEL)

i got this error

Starting lighttpd: 2011-11-22 08:40:43: (network.c.358) can't bind to port:  80 Address already in use


symtab wrote:

Hi,

After a lot of debugging i found a method to run both Apache and Lighttpd on the same port (80). While this is easy, preventing Cpanel from overwritting the apache configuration and stopping lighttpd was not so easy.

1. You need to reserve a IP just for lighttpd. For this go to WHM -> Apache Configuration -> Reserved IPs.
2. In lighttpd.conf use:

server.bind = "YOUR-RESERVED-IP-HERE"

This is useful because some ISP's (mostly from USA) dont allow visitors to connect to port 81. The other method would be to use proxy in Apache, but i dont recommend that, its to slow.

Offline

#4 2011-11-22 03:16:47

coderphp6
Member
Registered: 2011-04-20
Posts: 65

Re: [HOWTO] Running both Apache and Lighttpd on port 80 (with CPANEL)

works now

Offline

#5 2011-11-22 07:17:22

coderphp6
Member
Registered: 2011-04-20
Posts: 65

Re: [HOWTO] Running both Apache and Lighttpd on port 80 (with CPANEL)

i want to use lighttpd for my website not just for streaming but for whole site.
I've configured my site to run on lighttpd but i have problem :

Lighttpd doesn't support .htaccess so whenever i click on a video url like
http://www.mydomain.com/1/horny-young-d … eve-mms-1/
it gives me 404 error

tell me how to configure these Permalinks/Rewrite urls on lighttpd

Last edited by coderphp6 (2011-11-22 07:17:42)

Offline

#6 2011-11-22 08:00:36

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: [HOWTO] Running both Apache and Lighttpd on port 80 (with CPANEL)


Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds

Offline

Board footer

Powered by FluxBB