Lighthttpd How To Enable Modrewrite
May 1, 2007I am installing phplinkdirectory in lighthttpd, keep having problems with Mod Rewrite, everytime, I enable Mod Rewrite, 404 errors come out. What should I do?
View 7 RepliesI am installing phplinkdirectory in lighthttpd, keep having problems with Mod Rewrite, everytime, I enable Mod Rewrite, 404 errors come out. What should I do?
View 7 RepliesThis is my .htaccess
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
Errordocument 404 /404.html
RewriteCond %{REQUEST_FILENAME} !.(jpg|jpeg|gif|png|css|js)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule .* index.php [L]
</IfModule>
Basically, if file exist just call the file
If the is not ended in jpg, jpeg, gif, png, css, or js, and doesn't exist then call index.php
Does that mean it'll call 404.html for all files that ended in jpg, jpeg, etc?
What happened when 404.html doesn't exist?
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
That's the wordpress .htaccess
I tried to change the .htaccess to explicitly tell thedomain name.
So,
PHP Code:
RewriteRule . /index.php [L]
becomes RewriteRule . [url]
Then I tried copy the .htaccess to another domain. I thought I'll create a mirror. However, rather than a mirror, the http://anotherdomain.com/bla simply REDIRECT to [url]
How do I ensure that http://anotherdomain.com/bla display the content of [url]without redirecting?
Where can I learn more about modrewrite? Is there a more appropiate forum?
I have this as my .htaccess
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule !(index.php) [url][L]
</IfModule>
It works in every way as desired.
Any url, [url]whatever will show up [url]
From index.php then I can create php generated websites that take pics, whatever from database.
However, I got an idea. What about if several domain names use the same index.php and the same database. So, it's like mirrors.
If I put the same .htaccess in other domain name, I got something unexpected though.
The url location actually change to [url]
Also the content of
PHP Code:
echo 'Server:' . $_SERVER['SERVER_NAME'] . "
";
echo 'Host:' . $_SERVER['HTTP_HOST'] . "
";
echo 'Request:' . $_SERVER['REQUEST_URI'];
also change to domain.com, and /index.php?languageIndicator=lang_ar
I want an implicit redirect. Not an explicit redirect. To the outside world, people must think that they're indeed accessing http://otherdomainame.com/somepages and has no way to know that the page they're looking is http://domain.com/index.php?languageIndicator=lang_ar
How can I do that?
Of course, I can always copy index.php to all my domain names. But that's slow.
I will have or not problems, (plesk compatibility) with this tool: URL....URL-Rewrite...I need install ModRewrite to use "Permanent Links" with some scripts like "Wordpress". I have try search on the web any alternative, and i found this.
I like know if this "URL-Rewrite" from Microsoft will cause me or not problems with my Plesk 11.5.Additional i like know, if i can create a file "web.config" and this file will accept all my custom configurations?.For example to activate the URL-Rewrite on a Wordpress Install:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
[code]....
can anyone instruct me how to Re-compile php for lighthttpd, those people who had expierence with Lighthttpd?
View 2 Replies View Relatedhow to restart lighthttpd?
I was asked to restart lighthttpd at my friend host, he has 6 sites running, and of the site is down, host has asked him to restart the server, as he is away, he wanted me to restart, but I have no clue how to restart lighthttpd,
It will be really helpful if u can guide me for : if possible for the domain alone, else for the entire server
current options available :
lxadmin - hypervm
ssh connection
let me know the steps and code if any.
through lxadmin/kloxo how to disable apache and enable lighthttpd ?
if any code or any method plz explain in detail, never done, now need to do it on my friend vps as he is having problem with apache loads
I want to know lighthttpd works on what different kind of control panels
I am aware it works on lxAdmin, I want to maximize the options for more control panels which would be flawless
I don't have location/ in conf file where should this be placed under or above what content should this be added?
View 4 Replies View Relatedim thinking about getting a VPS with Cpanel or Plesk, but i would like to use lighthttpd instead of apache.
View 12 Replies View Relatedits been long time since I have set one and its been really bugging with the feather theme interface, which I haven't used before
now, here is the pt.
I have 3 ips , I want the main ip to be unique
i.e assuming .2, .3 and .4 are the the ips we have ben provided with, where .2 is the main ip of the server (lxadmin)
now, in the dns template, I have 6 options where ip has to be assigned, as -
base, cp, mail, ns, ns1, ns2
I have set the base,cp, mail, ips to .3
I don't have a clue on what to set for the ns, ns1, ns2
I want .3 to be shown as the pinged ip when site is pinged.
We have set .3 and .4 as the nameserver ips in the registrar, so do I need to provide .3 as the ns1 ip and .4 as the ns2 ips or both the ips have to be .3
and what should be the ns ip?
I had a .htaccess working in my previouse hosting. It is not working with the new hosting which has lighthttpd.
Can anyone help me to change my below htaccess modrewrite code to lighthttpd url rewrite? Its urgent please.
RewriteEngine On ...
I have been given a code by the coder to add in the conf file under the location / in conf file but there is no location code under conf file. I am not sure where to add this location / in the conf file ? need help on where to add this code in lighthttpd file
All I wanted to do is just an add an rewrite rule for one of the file and the coder has mentioned to add it below location / in conf file
I am using Apache now on my VPSes but i want to try it again with lighthttpd as it will use less resources, but the only problem is that lighthttpd is taking up lots of memory and i've read about a memory leak.
View 14 Replies View Relatedhow to de-activate lighthttpd and activate apache?
my friend is having some problem in his vps so he wants to get back into apache interface...
he is using kloxo/hypervm interface
Installed lighttpd but unable to run it properly.
[root@ssserver1 lighttpd]# /etc/init.d/lighttpd restart
Stopping lighttpd: [FAILED]
Starting lighttpd: [ OK ]
[root@ssserver1 lighttpd]# netstat -anp | grep light
[root@ssserver1 lighttpd]#
Checked logs.
2008-05-21 23:12:43: (mod_fastcgi.c.904) bind failed for: unix:/var/run/lighttpd/php-fastcgi.socket-0 No such file or directory
2008-05-21 23:12:43: (mod_fastcgi.c.1340) [ERROR]: spawning fcgi failed.
2008-05-21 23:12:43: (server.c.908) Configuration of plugins failed. Going down.
How to have multiple domains with 1 site on lighthttpd
Its simple 2 domains and 1 forum. The links should work as 2 individual sites.
[url]
The main site would be site where the site2 will be the additional site shadowing site
I need the code for lighthttpd
For my website I have a server which houses all of my gallery IMAGES of my user profiles. There are over 100,000 images on the server and it's only purpose is to provide those images with http.
However, the http server also has PHP installed, and it's only purpose is for uploading new images. Therefore users eventually get redirected to the images server where they can upload the image.
This all works, but in the future I want to remove the PHP side to the server. I also want to change the whole server program from Apache to Lighthttpd. This is because, lighthttp is a very low overhead web server program, but also provides very little features.
So I was wondering, if I was to do so, and since PHP is not installed, then I would have to make the upload pages on the main http server (which has PHP and Apache). Then I would have to make the main server send the uploaded image to the the lighthttp server via some sort of the scp system call, via PHP. I know that this IS possible, but when it comes down to security holes and so on, would this method really be worth it?
Generally I want to have the lighthttp setup only because it eliminates having to have any dynamic content. Obviously this can also be done with apache (removing dyanmic content), but lighthttp may be more efficient for static content.
to install LightHTTPD but I want to know how can I protect folders like using on apache i can put a .htaccess and it prompts me to enter pass etc...
How do I do that in lightHTTPd?
How do I disallow certian file extensions from public eyes like on my current server I disabled viewing of .datab files and when someone types in the location of mydb.datab they get a forbidden message.
how do i do that in lighthttpd?
trouble with users mis-using hot-linking feature, so he wants some restrictions to b set via htaccess
He has given me a code which is used for htaccess in apache, but he wants this to work in lighthttpd, I am not sure if this would work in lighthttpd htaccess,
this was the code given to me to b worked on:
Code:
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
#allow hotlinking for thumbnails
RewriteCond %{REQUEST_URI} !_thumb
#allowed website to hotlink (don't forget to add your own site !!)
RewriteCond %{HTTP_REFERER} !^[url]
#display no-hotlink.jpg instead of the requested image
RewriteRule .(jpg|jpeg|gif|png|bmp|ico)$ [url]
can any one help me for getting this code re-written for lighthttpd version htaccess file and where to enter this code -- using hypervm/kloxo on his vps
How do I go about converting the follow .htaccess file
Code:
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} -f
RewriteCond %{REQUEST_FILENAME} /blogs/(clientscript|images)/
RewriteRule ^(.*)$ $1 [L]
RewriteRule ^blogs/([-a-z0-9] )/([-a-z0-9] )-([0-9] )/comment-([0-9] ).html blogs/viewblog.php?username=$1&entrytitle=$2&entry=$3&c=$4 [QSA,L]
RewriteRule ^blogs/([-a-z0-9] )/([-a-z0-9] )-([0-9] )/feed/ blogs/syndication.php?entry=$3 [QSA,L]
RewriteRule ^blogs/([-a-z0-9] )/([-a-z0-9] )-([0-9] )/ blogs/viewblog.php?username=$1&entrytitle=$2&entry=$3 [QSA,L]
RewriteRule ^blogs/([-a-z0-9] )/category/([-a-z0-9] ).html blogs/viewblog.php?username=$1&categorydata=$2 [QSA,L]
RewriteRule ^blogs/([-a-z0-9] )/([0-9]{4})/([0-9]{1,2})/ blogs/viewblog.php?username=$1&month=$3&year=$2 [QSA,L]
RewriteRule ^blogs/([-a-z0-9] )/([0-9]{4})/([0-9]{1,2})/([0-9]{1,2}).html blogs/viewblog.php?username=$1&month=$3&year=$2&day=$4 [QSA,L]
RewriteRule ^blogs/([-a-z0-9] )/archive.html blogs/viewblog.php?username=$1&displaymode=archive [QSA,L]
RewriteRule ^blogs/([-a-z0-9] )/feed/ blogs/syndication.php?username=$1 [QSA,L]
RewriteRule ^blogs/([-a-z0-9] )/ blogs/viewblog.php?username=$1 [QSA,L]
to work with lighthttpds rules?
I want to enable mbstring. I googled and found --enable-mbstring is the key to turning it on but I don't know where to put this. In the php.ini?
View 14 Replies View Relatedi got hosting with cPanel Control panel i have some problem with this hosting because its "register_globals" disabled , i need to enable the "register_globals" on my hosting ,
View 10 Replies View RelatedI would like to ask whether should we use/enable the clamAV service on our VPS? I have read from several article, it said that ClamAV is pretty hungry on CPU/Memory resources.
I would like to know, do you use/enable the clamAV on your VPS? Or even don't have it installed on your VPS?
I have a VPS server, i installed and configure csf, but wonder if i reboot my server the csf would close the connection, or wont work...
so i remmeber how but i really forget and cannot remmber how to enable the csf on the vps start up..
how to enable innodb
use this command in mysql ....
My becky email client don't work with SSL 3.0 (POP3s).
by the way, when use SSL 2.0, it still can't verify certificate. I install StartCOM Free SSL successfully with every services (vps.domain.com)
[url]
How do I enable pdo_mysql on my cpanel server? Can I do it somewhere in WHM or do I need to go to command line?
View 7 Replies View Relatedi have a dedicated server with php4 and i have one client that needs to have gettext module enabled..
how can i enable it?
I have a VPS and I need to enable mod_rewrite.
Here is my PHP Info: [url]
I read a tutorial but I just don't get it. I would appreciate if you could help me out.
I need it for my Wordpress blog.