LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-24-2009, 03:32 AM   #1
edenCC
Member
 
Registered: May 2006
Location: China
Distribution: Debian
Posts: 198
Blog Entries: 1

Rep: Reputation: 32
How can I convert this directive in Apache to Nginx rule?


Hi, List,
I just faced an issue on migrating my web server from Apache to Nginx,

It's a SSI related problem, and I've checked all other httpd.conf directives, they all work well, but I didnt know how to convert this one:

Quote:
AddOutputFilter INCLUDES .shtml
I simply use these lines in Nginx, but it does not work as expected:

Quote:
location / {
ssi on;
......
}
Can anyone give me a hand please?
 
Old 04-24-2009, 03:47 AM   #2
edenCC
Member
 
Registered: May 2006
Location: China
Distribution: Debian
Posts: 198

Original Poster
Blog Entries: 1

Rep: Reputation: 32
I feel lucky that I finally find the key

it's:
Quote:
location ~ \.shtml$ {
ssi on;
}
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache RedirectMatch Directive sir-lancealot Linux - Server 1 01-24-2008 04:14 AM
Apache - Alias directive Sapient Linux - Software 3 01-24-2006 07:57 AM
apache User directive merchtemeagle Linux - Software 2 03-07-2005 03:42 PM
Apache Directive sopiaz57 Linux - Security 2 12-09-2003 01:32 PM
Alias directive in Apache 1.3.22 mswebs Linux - Networking 2 08-01-2003 02:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:25 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration