x10Hosting Forums

Corporate Free Hosting for the Masses.



Register

Closed Thread
 
LinkBack Thread Tools Display Modes
I love the internet

vigge_sWe's Avatar

Join Date: Oct 2007
Posts: 2,682
Credits: 8,624
vigge_sWe has a reputation beyond reputevigge_sWe has a reputation beyond repute
Location: Göteborg, Sweden

 
09-26-2008, 04:25 PM
[REQ][500 Credits]Apache to lighttpd

I recently switched to lighttpd because apache is bugged on my VPS. I need someone to fix my .htaccess and tell me how to use that to lighttpd:

Code:
# Lines That should already be in your .htacess
<Files "config.php">
Order Allow,Deny
Deny from All
</Files>
<Files "common.php">
Order Allow,Deny
Deny from All
</Files>

DirectoryIndex portal.php index.php index.html
ErrorDocument 404 /error404/error.php 

# You may need to un-comment the following line
# Options +FollowSymlinks
# REMEBER YOU ONLY NEED TO STARD MOD REWRITE ONCE
RewriteEngine On
# REWRITE BASE
RewriteBase /
# HERE IS A GOOD PLACE TO ADD THE WWW PREFIXE REDIRECTION

#####################################################
# PHPBB SEO REWRITE RULES - ADVANCED
#####################################################
# AUTHOR : dcz www.phpbb-seo.com
# STARTED : 01/2006
#################################
# FORUMS PAGES
###############
# FORUM INDEX REWRITERULE WOULD STAND HERE IF USED. 'forum' REQUIRES TO BE SET AS FORUM INDEX
# RewriteRule ^forum\.html$ /index.php [QSA,L,NC]
# FORUM
RewriteRule ^[a-z0-9_-]*-f([0-9]+)/?(page([0-9]+)\.html)?$ /viewforum.php?f=$1&start=$3 [QSA,L,NC]
# TOPIC WITH VIRTUAL FOLDER
RewriteRule ^[a-z0-9_-]*-f([0-9]+)/[a-z0-9_-]*-t([0-9]+)(-([0-9]+))?\.html$ /viewtopic.php?f=$1&t=$2&start=$4 [QSA,L,NC]
# GLOBAL ANNOUNCES WITH VIRTUAL FOLDER
RewriteRule ^announces/[a-z0-9_-]*-t([0-9]+)(-([0-9]+))?\.html$ /viewtopic.php?t=$1&start=$3 [QSA,L,NC]
# TOPIC WITHOUT FORUM ID & DELIM
RewriteRule ^([a-z0-9_-]*)/?[a-z0-9_-]*-t([0-9]+)(-([0-9]+))?\.html$ /viewtopic.php?forum_uri=$1&t=$2&start=$4 [QSA,L,NC]
# PROFILES ADVANCED
RewriteRule ^[a-z0-9_-]*-u([0-9]+)/$ /memberlist.php?mode=viewprofile&u=$1 [QSA,L,NC]
# USER MESSAGES ADVANCED
RewriteRule ^[a-z0-9_-]*-u([0-9]+)/(topics|posts)/?(page([0-9]+)\.html)?$ /search.php?author_id=$1&sr=$2&start=$4 [QSA,L,NC]
# GROUPS ADVANCED
RewriteRule ^[a-z0-9_-]*-g([0-9]+)(-([0-9]+))?\.html$ /memberlist.php?mode=group&g=$1&start=$3 [QSA,L,NC]
# POST
RewriteRule ^post([0-9]+)\.html$ /viewtopic.php?p=$1 [QSA,L,NC]
# ACTIVE TOPICS
RewriteRule ^active-topics(-([0-9]+))?\.html$ /search.php?search_id=active_topics&start=$2&sr=topics [QSA,L,NC]
# UNANSWERED TOPICS
RewriteRule ^unanswered(-([0-9]+))?\.html$ /search.php?search_id=unanswered&start=$2&sr=topics [QSA,L,NC]
# NEW POSTS
RewriteRule ^newposts(-([0-9]+))?\.html$ /search.php?search_id=newposts&start=$2&sr=topics [QSA,L,NC]
# THE TEAM
RewriteRule ^the-team\.html$ /memberlist.php?mode=leaders [QSA,L,NC]
# HERE IS A GOOD PLACE TO ADD OTHER PHPBB RELATED REWRITERULES

# FORUM WITHOUT ID & DELIM
# THESE FOUR LINES MUST BE LOCATED AT THE END OF YOUR HTACCESS TO WORK PROPERLY
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^([a-z0-9_-]+)/?(page([0-9]+)\.html)?$ /viewforum.php?forum_uri=$1&start=$3 [QSA,L,NC]
# END PHPBB PAGES
__________________
vigge_sWe is offlineReport Post
Moderator

Sokii's Avatar

Join Date: Jan 2008
Posts: 520
Credits: 7,102
Sokii has a reputation beyond repute
Location: 127.0.0.1

Send a message via MSN to Sokii
 
09-26-2008, 04:34 PM
Re: [REQ][500 Credits]Apache to lighttpd

I don't see anything wrong, but it was a quick look.
__________________
If you found this post helpful, please click on +REP.
===============================================
My Site:
Pyloth Is Currently Under Major Construction!
==================================================
Useful Links:
Sokii is offlineReport Post
I love the internet

vigge_sWe's Avatar

Join Date: Oct 2007
Posts: 2,682
Credits: 8,624
vigge_sWe has a reputation beyond reputevigge_sWe has a reputation beyond repute
Location: Göteborg, Sweden

 
09-26-2008, 04:42 PM
Re: [REQ][500 Credits]Apache to lighttpd

Quote:
Originally Posted by Sokii View Post
I don't see anything wrong, but it was a quick look.
you maybe want to know that mod_rewrite isn't supported by lighttpd. Lighttpd uses something they call "lighttpd rewrite rule"
__________________
vigge_sWe is offlineReport Post
Server Tech

Christopher's Avatar

Join Date: Jun 2006
Posts: 6,857
Credits: 94,747
Christopher has a reputation beyond repute
Location: USA

 
09-26-2008, 06:07 PM
Re: [REQ][500 Credits]Apache to lighttpd

As far as I know lighttpd will not read a .htaccess file. See http://diaryproducts.net/about/web_s...ccess_lighttpd for instructions on adding it.
__________________

Win a domain or $10 paypal payout!
Do NOT PM staff for support! The PM will most likely be ignored.
Christopher is online nowReport Post
I love the internet

vigge_sWe's Avatar

Join Date: Oct 2007
Posts: 2,682
Credits: 8,624
vigge_sWe has a reputation beyond reputevigge_sWe has a reputation beyond repute
Location: Göteborg, Sweden

 
09-27-2008, 03:58 AM
Re: [REQ][500 Credits]Apache to lighttpd

yes I know that, all code that was in the .htaccess should be put in LX Admin instead under "Lighttpd Rewrite Rule" (well, the rewrite rules).

Since it is not mod_rewrite based, I need someone to convert it to the "url.rewrite" that exsist in lighttpd.

btw christopher, that link is about vhosts
__________________
vigge_sWe is offlineReport Post
I love the internet

vigge_sWe's Avatar

Join Date: Oct 2007
Posts: 2,682
Credits: 8,624
vigge_sWe has a reputation beyond reputevigge_sWe has a reputation beyond repute
Location: Göteborg, Sweden

 
09-27-2008, 04:17 AM
Re: [REQ][500 Credits]Apache to lighttpd

*temp closed until I decide if I should use lighttpd or nginx*
__________________
vigge_sWe is offlineReport Post
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
[REQ][500 each] looking for 2 people relisys The Marketplace 7 09-01-2008 01:31 PM
[Ubuntu] Lighttpd Christopher VPS Tutorials 3 07-06-2008 03:27 PM


All times are GMT -5. The time now is 11:28 PM. Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0 RC7
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios

Home Loan | Free Advertising | Sonic Wallpapers | Car Finance | Bad Credit Mortgages