26 articles tagged "lighttpd"
- Red Hat enterprise Linux Install lighttpd and Fastcgi PHP
I have received many queries regarding how to configure and install Lighttpd web server under Red Hat Enterprise Linux version 4.0. Mark asks:
RHEL 64 bit v4.0 does not support PHP as FastCGI. Lighttpd is not available from RHN (up2date command). How do I configure and install lighttpd with FastCGI?
Ok let me answer these questions [...] - Lighttpd redirect www.domain.com requests to domain.com or vice versa
For various reason you might want to redirect all traffic coming to www.domain.com to domain.com or vise versa.
This is essential if you want to maintained good structure for search engines (SEO) or to generate accurate stats.
Configure no www
Open your /etc/lighttpd/lighttpd.conf file:
# vi /etc/lighttpd/lighttpd.conf
Find out your virtual domain section.
Add following configuration directive if you want [...] - Configure lighttpd alias (mod_alias)
This lighttpd module provides for mapping different parts of the host filesystem in the document tree. You can use it for mapping various directories. For example cgi-bin directory mapped to /var/lib/cgi-bin. The alias module is used to specify a special document-root for a given url-subset.
Configuration
Open your lighttpd configuration file:
vi /etc/lighttpd/lighttpd.conf
Append/add mod_ alias to list of [...] - Lighttpd rotating log files with logrotate tool
Last time I wrote about setting up virtual hosting for Lighttpd web server. Naturally next step is to setup log rotating with logrotate which rotates, compresses log files.
Our setup
Our sample setup has total 6 log files:
Default domain/IP log files:
/var/log/lighttpd/access.log
/var/log/lighttpd/error.log
nixcraft.com virtual domain log files:
/var/log/lighttpd/nixcraft.com/access.log
/var/log/lighttpd/error.log
theos.in virtual domain log files:
/var/log/lighttpd/theos.in/access.log
/var/log/lighttpd/theos.in/error.log
logrotate Configuration
All you need to do is open/create logrotate [...] - Lighttpd PHP fastcgi configuration
FastCGI is a language independent, scalable, open extension to CGI that provides high performance without the limitations of server specific APIs. FastCGI provides better scalability and performance. Instead of creating a new process (the CGI program) for every request, FastCGI uses a single persistent process which handles many requests over its lifetime. (See wikipedia [...]
- Executing Linux / UNIX commands from web page
A Web interfaces is almost used by routers and many other sophisticated programs such as webmin. However, why go for a web interface or execute commands from web page? For automation purpose, you need to use a web interfaces. Another advantage is you can access your web-based interface from any computer, running any operating system, [...]
Viewing 21-26 of 26 posts. ( see all popular tags )
« Previous Page


Recent Comments
Today ~ 151 Comments
Today ~ 6 Comments
Today ~ 4 Comments
Today ~ 1 Comment
Yesterday ~ 1 Comment