Serving Domain Through Apache And Lighttpd At Same Time
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 Complete Thread with Replies
Sponsored Links:
Related Forum Messages:
Apache Serving Blank Pages
I am having this issue with a new box where Apache at random serves blank pages and won't serve anything but until it's restarted. I see no errors in /var/log/messages either to show why this is happening. It's not all pages either just several various ones. I know it's not a programming issue either because the only thing the server is running is one instance of vBulletin. I look at top during this and CPU and RAM usage are very low. The only fix to get Apache to serve the pages is to restart it. Anyone have any clues on what it could be? I set my php.ini memory limit to a gig (I have 16 gigs in the sever)
View Replies!
View Related
Apache Vs Lighttpd
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 Replies!
View Related
Apache Or Lighttpd
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 Replies!
View Related
Lighttpd Or Apache
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 Replies!
View Related
Switch From Apache To Lighttpd
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 Replies!
View Related
Lighttpd / Apache - Restarting The Server
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 Replies!
View Related
Lighttpd And Apache Configuration For A Subdomain
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 Replies!
View Related
Lighttpd And Apache With Cpanel Or Directadmin
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 Replies!
View Related
Apache RewriteRule Convert To Lighttpd
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 Replies!
View Related
Running Lighttpd Along Side Apache
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 Replies!
View Related
Lighttpd - 95% Cpu Usage. Apache - All Ram Used, Swap Comes In
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 Replies!
View Related
How To Setup Linux Proxy Server Apache+lighttpd
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 Replies!
View Related
First Time W/o Cpanel - Setting Up A Domain
Heres what Ive done created a new user and set their home directory as /home/<user>. I then made a public_html folder within their home dir. Then I went into httpd.conf, and added a virtual host for that domain with the document root to the public_html dir i created . At this point, what is there left to do? I need to mess with the DNS right? Anything else?
View Replies!
View Related
Apache Rewrite ==> Lighttpd Rewrite
I dowload a scripts with a .htaccess file Code: DirectoryIndex index.php RewriteEngine On RewriteRule ^link/([0-9]+)[/]*$ /redirect.php?id=$1 RewriteRule ^link/([a-zA-Z0-9]+)[/]*$ /redirect.php?tag=$1 I want to convert it to lighttpd rewrite rules, urgent, also I can't contact with the scripts author,
View Replies!
View Related
IIS Just Stopped Serving..
I have been hosting a site for the past number of weeks on IIS on Server 2003..I have a no-ip a/c which is working fine along with port forwarding on my router.. The other day I restarted my server for something but now I cant seem to access my site from across the internet and according down for everyone or just me (website) it is down. I can, however, access the site using domain name from within my lan. I'm not too hot on server 2003 or IIS. What can I do to debug/diagnose the problem?
View Replies!
View Related
Servint - Serving Porn On My Sites
What is up with servint? I have domains and a vps through them. The vps is now serving up porn on all the sites. When I call servint they say I don't own the name but a whois shows i DO INDEED own the name for another year and it is registered to me and they are the registrar!!! The portal user/pass suddenly stopped working so I can't even put in a support ticket All I get is a message machine ... does anyone know if servint staff ever come on this board. It has probably been hacked but it is pretty disturbing when they say I don't own the domain but it is CLEAR THAT I do own it.
View Replies!
View Related
Speed Up Serving Large Files
I'm working on a web site which will basically be a flash games portal. I have a dedicated server running Apache 2 on a 100mbit dedicated line but my download speed for large files (flash files of over 5mbs) is really slow. I am thinking this is because of Apache but I don't know much about this. I've read that I should change for a lighter http server for serving static files. The way my server is set up is I have 2 virtual machines running, one doing the PHP processing and the other serving static files, both running Apache, so if I have to change HTTP server for the static files it would be very easy. Although I am not sure if this is necessary or if I can tune Apache to push files faster than this.
View Replies!
View Related
Serving Data From 2 Hard Disks
I have a server with 2 hard drives, say drive A and drive B. Right now all my files, database and data is on drive A, and drive B is empty. Since I have another drive available, I want to split the load between the two drives. I'm ok with having the web pages and the database on one drive. I mostly want to just have the data (I have about 500GB of data) split between the two drives. Note that I want to avoid duplicating the data. I want to have each file on either drive A XOR drive B. Should I map a separate subdomain to drive B and then use that subdomain to serve the half of the data thats there? Is there something I can do with hard/soft links on the server so that even though the data is on 2 drives, users still use the same url to access data on either drive? Any other options?
View Replies!
View Related
Media Serving And Cache Daemon
what I want to do, have a "node" somewhere serve media (static) files from a central server, but cache the static files the first time they are hit, so subsequent requests to the "node" don't require getting the file from the central server. Is there readily available solution to this?
View Replies!
View Related
How To Tweak Linux For File Serving
i have few servers that just serve files (1MB-100MB) Suse Linux on all the servers have minimal apps installed and i already got a llarge performance increase by dumping apache now im look at tweaking at the OS level any settings in Linux itself to speed up sending files down the pipe? net.ipv4.tcp... in /etc/sysctl.conf?
View Replies!
View Related
Static File Serving - Performance
I'm planning to setup a server ONLY for hosting of static binary files varying from few KB to few MB in size. I've seen some of the litespeedtech performance benchmarks, which you can find here: [url] From the "small static file" benchmark chart, i can see that IIS6 beats lighttpd in this test. So i'm wondering does the IIS6 really have better performance at file hosting than lighttpd. Actually it does not matter which operating system i will be using at this server, since i will use it only for file serving. With lots of concurrent connections. Possibly thousands of connections. I need some feedbacks on this, so i can decide, IIS or lighttpd. Few more bucks for win2k3 won't be an issue here, if it's performance is better than lighttpd for this kind of use.
View Replies!
View Related
10 Second Lag Serving Static HTML
this isn't my server, so I don't have a lot of information about it, other than it's a Linux/Apache Dedicated server at EV1. (cPanel/WHM) There are other sites on the server, and they are running fine. One site has a terrible lag. It takes about 10 seconds to serve up a static HTML file.. Now, it's not like the server is slow. It's like this: You request a small HTML file. The site sits and thinks about it for about 10 seconds, and then after that everything processes quickly. The forum on the site is the same way. Everything you click on works fine and loads quickly after that initial delay passes. Is there a common configuration problem that might be causing this? If you want to see this phenomenon, here are a few test files: [url] [url] [url] [url]
View Replies!
View Related
Serving & Playing Breeze FIles
Having trouble hosting Macromedia Breeze files on a brand new dedicated 2003 NT box. Anything I need to adjust? When someone visits the URL, it loads the presentation main screen, but it's supposed to auto-play several movies and it won't. It works fine locally and on 2 unix servers I tested it on, but not the new NT box. The weird thing is, if I remote desktop to that server, I can't play that presentation locally or server thru the linux boxes. I figured it was an extensions thing, but like I said the intro still does appear, and if I go to Adobe.com and play a new "Adobe Presenter" presentation - it works fine.
View Replies!
View Related
Preferred Operating System For Web Serving
I have been online since 95 and I've got a lot of information I could help others with regarding web development and interface design. One thing I'm terrible at is System Administration, but I'm getting better and my first step is to pick a reliable operating system for both the webservers and the database servers. Would anyone be willing to answer the following questions or point me to a thread that already discusses these? A little background, our site has 200k members, 30k active and is growing by about 5k a week. We still run MySQL 4.0.27 on the DB servers and they are running FC2. The webservers are Apache 1.3.37 and PHP 4.4.2 running FC2 and FC4 as well. My questions 1. What OS would you prefer to upgrade to for the web servers? and a "few" reasons why? 2. What OS would you prefer to upgrade to for the database servers? and a "few" reasons why?
View Replies!
View Related
Problem Serving Gzipped Static Content
I'm trying to serve as much gzipped content as possible on my web site. I will gzip dynamic pages on the fly using PHP, and I plan to gzip static content just one time, not to use much CPU, and serve css.gz, .js.gz files, etc... So, I uploaded a test.html file and a .css file that changes the color of the text to red. I gzipped the css file: %gzip style.css I also uploaded an .htaccess file with this content: RewriteEngine on RewriteBase /gzip/ RewriteCond %{HTTP_ACCEPT_ENCODING} gzip RewriteRule ^(([^.]+.)+)css$ /$1css.gz For now I'm not going to include any gunzipped style sheet, just to make sure my browser picks the gzipped style sheet. I also uploaded a phpinfo.php file to make sure I have mod_gzip. So, here's the list of files I have: - .htaccess - style.css.gz - test.html - phpinfo.php But when I open the test.html file: [url] the style sheet isn't applied. If I upload a regular style.css file, it works fine. It seems the Rewrite rules aren't taken into account. Do you know how I could server the gzipped style sheet instead?
View Replies!
View Related
Hardcode APACHE To Deny Request To Particular Domain
I am seeking a solution such that the apache vs 2 denies php or allowing requests out of the server to say domain abc.com and its entire IP block. I have done so far is used apf -d abc.com to deny outgoing and incoming requests and the php pages (proxies) cannot access the site anymore). But what i want it something hardcoded into apache itself so it blocks all php based request going off the server to that domain. How can i go about it? using centos5 apache 2 and cpanel!
View Replies!
View Related
Squirrelmail: Email Arrives With Different Time Than Server Time
This is a rare issue i have on a RHEL 5.2 + cPanel server. Server time is: Tue Nov 11 17:02:51 CST 2008 Squirrelmail time show: Code: Last Refresh: Tue, 5:02 pm So, that is correct too.. But email arrives with -4 hours time, example: webmaster@xxx.com 1:03 pm testing email I already rebooted httpd, exim, and imap server, and the server itself too.. and problem stills.
View Replies!
View Related
What Type Of Server And Os, Etc For Just File Serving- Small Files Like Under 10kb
I have a website that just serves small files, under 10kb most of them. I just need a server that lets me ftp the file to it, set up subdomains and domains for one website. Don't need to manage mysql or anything. Not even php. Just serve files. A good fast OS? Something like lighttpd? Ioono? I'm currently doing 600gb of bandwidth per month. I'm expecting to do about 1000gb by the end of the year. Would a small server like a pentium 4 be able to handle just serving files?
View Replies!
View Related
Server Response Time :: Network Time Out
I can't get access to a certain site. I always get the page with: network time out - server at *** takes to long to respons. More people have noticed this and apparently it only happens to people with certain specific providers. And not all the time. Some times they DO get access eventy to they belong to the same ISP. So I guess an ISP isn't blocking access to it otherwise it would be permenantly/The site administrator insists that certain ISP's are blocking his site. He's hosting it on his own server. The domain belongs is registered at namecheap.com. If an ISP is blocking this site (if that's possible?), that would lead to that 'network timeout' page wouldn't it? What is the most likely reason for getting a timeout page anyway?
View Replies!
View Related
Daily, Time To Time Cpu Load
I have a dedicated server specs: AMD 3500+ 64 Bit CPU, 1 GB Ram, 160 GB Sata Drive. For 1 month, CPU load average reaches 40-50 value. This happens about 5-6 times in a day. When I stop httpd service for 30 seconds everything goes normal. I think this is not a DoS attack because it comes systematic, I dont believe no one makes this regularly except bots. Maybe its a system service or a cronjob but it stops when I turn off httpd service? How can I be sure about what's making this regularly load? I also did set up a script which mail me when load average of system goes crazy and restart httpd service. But instant restart is not working to stop load increase.
View Replies!
View Related
An Otherwise Great Performing Server Now Delays Prior To Serving PHP/mysql
One of my dedicateds (Fedora 7 / apache 1.39 / php5 mysql5) has been running flawlessly but now has a strange ~4-5 second delay when serving up PHP/mysql pages such as Wordpress. I say delay because it appears to think about it for several seconds, then when the page finally begins the refresh process, everything serves up lightning fast. Latency is low, direct file downloads are faster than ever. ModSecurity is running, and accounts for about 1 second of that delay (tested with it on and off), but the other 3-4 seconds is a mystery.
View Replies!
View Related
Apache Overloading Due To Requests To My Main Domain Name Server (DNS) Name
I currently have a web VPS hosted with FDCServers.net and after 5 days of switching to it i am getting massive HTTP requests. When i login to WHM and hit apache status i have many requests per second by multiple IP's that are going to pages that simple don't exist. Currently my hostname for the server is set at web-01.optical-hosting.com which is what the requests are being sent to. I am also having a DNS issue because when i put http://web-01.optical-hosting.com in the web browser it displays the first account's site under "list accounts" in cpanel. Can someone please help me fix both of these issue's? i will post an apache log in a second post as it is long. Also, these are from overseas. please someone help me with this i have Aim and Msn.
View Replies!
View Related
Apache Error :: Could Not Reliably Determine The Server's Fully Qualified Domain Name, Using 127.0.0.1
Whenever I restart my apache on my VPS, it throws some wierd warnings: Forcing reload of web server (apache2)...apache2: apr_sockaddr_info_get() failed for goebs apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName waiting apache2: apr_sockaddr_info_get() failed for goebs apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName . where goebs is my VPS linux machine hostname. I already have a domain setup with this VPS, and it works fine, just that I get this weird warning.
View Replies!
View Related
Rapid Site Deployment (database Driven Domain Name Server (DNS) + Apache Config)
I am trying to do something that I believe is fairly non-standard. What I am looking to do is create a system where I can rapidly deploy web sites without having to restart named and Apache. For example, if a customer completes a process, I want to be able to turn that site on immediately using a temporary domain (somecompany.example.com or othercompany.example.com). With some programming language (hopefully PHP) I would like to get the customer up and running with their site immediately without having to restart the server. While doing some research I found I could use MyDNS which uses MySQL to manage DNS data instead of configuration files. MyDNS can be updated on the fly. For Apache I have seen wildcard configurations, but everyone seems to be suggesting the use of mod rewrite. I would prefer that the domain maps directly to a specific folder: somecompany.example.com -> /sites/somecompany/htdocs (*.example.com -> /sites/*/htdocs) Does anyone know how I might do this with Apache. It seems similar to user directories (example.com/~username -> /home/*/htdocs)
View Replies!
View Related
Lighttpd Mod_rewrite
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. ExpiresActive On 2. ExpiresDefault A1209600 3. ExpiresByType text/html A1 #</IfModule> 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] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule .* loader.php [L,QSA] </IfModule> 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,
View Replies!
View Related
Lighttpd.conf
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.
View Replies!
View Related
Lighttpd Crashing
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?
View Replies!
View Related
Lighttpd With MySqli
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?
View Replies!
View Related
Lighttpd On CPanel
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 .
View Replies!
View Related
Rewrite In Lighttpd 1.5
i had following rewrite (for wordpress multi user ) and it was working with lighttpd 1.4.x but i dont know its not working in 1.5 Quote: $HTTP["host"] == "blogs.domain.com" { url.redirect = ("^/(.*)" => "http://%1/$1") url.rewrite-once = ("^/(.*)?/?files/(.*)" => "wp-content/blogs.php?file=$2", "^/(wp-.*)$" => "$1", "^/([_0-9a-zA-Z-]+/)?(wp-.*)" => "$2", "^/([_0-9a-zA-Z-]+/)?(.*.php)$" => "$2", "." => "index.php") } and its showing following error Quote: mod_rewrite.c.293: (error) url.rewrite contains a regex for '/' which leads to a URI without a leading slash: index.php
View Replies!
View Related
Lighttpd - For My Server
i have small - mid size forum 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.
View Replies!
View Related
Lighttpd Proxy
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 Replies!
View Related
Lighttpd Rewrite
to accomplish: [url] ==> [url] however it should be proxied so that the user never sees [url] This is because the sub domain is using apache while www is using lighttpd and I want to keep the entire site with www to the user.
View Replies!
View Related
|