<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Problem with mod_rewrite when using trailing forward slash</title>
<description>Hi,
I have configured a server for shared hosting using apache,
mod_fastcgi and php-fpm.
Everyting seems to work fine, just not when using full_path for search
engine optimization.
Apache i version 2.2.16
PHP is version 5.2.14
mod_fastcgi is version 2.4.6
This is an example of my .htacces file
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
and this is the virtualhost configuration
FastCgiExternalServer /usr/data/www/domain.ext/.virtual_html/docs -
socket /usr/data/www/.fpm-sockets/domain.ext.sock
AddHandler php-fastcgi .php .phtml .php4 .php5 .php3
Action php-fastcgi /virtualhtml
Alias /virtualhtml /usr/data/www/domain.ext/.virtual_html/docs/
When I call this url: domain.ext/pagename it should redirect the
request to index.php/pagename, but instead I get a 404 error message.
&amp;quot;No input file specified&amp;quot;
Anybody know how to make this work ? I've been searching google, but
unfortunately with no usefull result..
Thanks in advance. Daniel</description><link>http://forum.nginx.org/read.php?3,154587,154587#msg-154587</link><lastBuildDate>Sat, 25 May 2013 06:02:51 -0400</lastBuildDate>
<generator>Phorum 5.2.16</generator>
<item>
<guid>http://forum.nginx.org/read.php?3,154587,154655#msg-154655</guid>
<title>Re: Problem with mod_rewrite when using trailing forward slash</title><link>http://forum.nginx.org/read.php?3,154587,154655#msg-154655</link><description><![CDATA[On 1 Dec., 08:07, Ben &lt;benppt...@gmail.com&gt; wrote:<br />&gt; Hi..maybe you can try this<br />&gt;<br />&gt; in your latest line of apache config<br />&gt; Alias /virtualhtml /usr/data/www/domain.ext/.virtual_html/docs<br />&gt;<br />&gt; remove the latest &quot;/&quot;<br />&gt; hope it works.<br /><br />Thanks, but it didn't work :(]]></description>
<dc:creator>dbn</dc:creator>
<category>Php-fpm Mailing List - English</category><pubDate>Wed, 01 Dec 2010 03:24:01 -0500</pubDate></item>
<item>
<guid>http://forum.nginx.org/read.php?3,154587,154650#msg-154650</guid>
<title>Re: Problem with mod_rewrite when using trailing forward slash</title><link>http://forum.nginx.org/read.php?3,154587,154650#msg-154650</link><description><![CDATA[Hi..maybe you can try this<br /><br />in your latest line of apache config<br />Alias /virtualhtml /usr/data/www/domain.ext/.virtual_html/docs<br /><br />remove the latest &quot;/&quot;<br />hope it works.<br /><br />On Nov 30, 11:15 pm, dbn &lt;d...@bielefeldtsolutions.dk&gt; wrote:<br />&gt; Hi,<br />&gt;<br />&gt; I have configured a server for shared hosting using apache,<br />&gt; mod_fastcgi and php-fpm.<br />&gt; Everyting seems to work fine, just not when using full_path for search<br />&gt; engine optimization.<br />&gt;<br />&gt; Apache i version 2.2.16<br />&gt; PHP is version 5.2.14<br />&gt; mod_fastcgi is version 2.4.6<br />&gt;<br />&gt; This is an example of my .htacces file<br />&gt;<br />&gt; RewriteEngine on<br />&gt; RewriteCond %{REQUEST_FILENAME} !-f<br />&gt; RewriteCond %{REQUEST_FILENAME} !-d<br />&gt;<br />&gt; RewriteRule ^(.*)$ index.php/$1 [L]<br />&gt;<br />&gt; and this is the virtualhost configuration<br />&gt;<br />&gt; FastCgiExternalServer /usr/data/www/domain.ext/.virtual_html/docs -<br />&gt; socket /usr/data/www/.fpm-sockets/domain.ext.sock<br />&gt; AddHandler php-fastcgi .php .phtml .php4 .php5 .php3<br />&gt; Action php-fastcgi /virtualhtml<br />&gt; Alias /virtualhtml /usr/data/www/domain.ext/.virtual_html/docs/<br />&gt;<br />&gt; When I call this url: domain.ext/pagename it should redirect the<br />&gt; request to index.php/pagename, but instead I get a 404 error message.<br />&gt; &quot;No input file specified&quot;<br />&gt;<br />&gt; Anybody know how to make this work ? I've been searching google, but<br />&gt; unfortunately with no usefull result..<br />&gt;<br />&gt; Thanks in advance. Daniel]]></description>
<dc:creator>Ben</dc:creator>
<category>Php-fpm Mailing List - English</category><pubDate>Wed, 01 Dec 2010 02:08:01 -0500</pubDate></item>
<item>
<guid>http://forum.nginx.org/read.php?3,154587,154646#msg-154646</guid>
<title>Re: Problem with mod_rewrite when using trailing forward slash</title><link>http://forum.nginx.org/read.php?3,154587,154646#msg-154646</link><description><![CDATA[On Tue, Nov 30, 2010 at 10:16 PM, Daniel Bielefeldt<br />&lt;dbn@bielefeldtsolutions.dk&gt; wrote:<br /><br />&gt; Well, I was hoping for an answer that could help me getting further with<br />&gt; my apache configuration :) I don't have any experience with nginx, and I<br />&gt; dought my users think it's a good idea to change, as they rely on<br />&gt; .htaccess features in apache.<br />&gt;<br />&gt; Anyhow, why do you mean that nginx can do a better job when running<br />&gt; php-fpm ?<br /><br />Not really. They do typically go hand in hand though. However if you<br />need htaccess support, and it's not just for PHP overrides that you<br />could use htscanner for (or php 5.3 equivalents) then you might be<br />stuck with apache.<br /><br />I just saw the config and it annoyed me because I loathe Apache :) I<br />tried to give as much help as I could initially. I just had to throw<br />in a shout out for nginx at the end.]]></description>
<dc:creator>mike</dc:creator>
<category>Php-fpm Mailing List - English</category><pubDate>Wed, 01 Dec 2010 01:26:00 -0500</pubDate></item>
<item>
<guid>http://forum.nginx.org/read.php?3,154587,154644#msg-154644</guid>
<title>Re: Problem with mod_rewrite when using trailing forward slash</title><link>http://forum.nginx.org/read.php?3,154587,154644#msg-154644</link><description><![CDATA[Den 01/12/10 00.55, Michael Shadle skrev:<br />&gt; On Tue, Nov 30, 2010 at 7:15 AM, dbn &lt;dbn@bielefeldtsolutions.dk&gt; wrote:<br />&gt;<br />&gt;&gt; When I call this url: domain.ext/pagename it should redirect the<br />&gt;&gt; request to index.php/pagename, but instead I get a 404 error message.<br />&gt;&gt; &quot;No input file specified&quot;<br />&gt;<br />&gt; well no input specified means its hitting the PHP interpreter, and<br />&gt; most of the time its because the file doesn't exist or SCRIPT_FILENAME<br />&gt; or whatever PHP needs to know to load the file is incorrect.<br />&gt;<br />&gt; use nginx. :)<br /><br />Well, I was hoping for an answer that could help me getting further with<br />my apache configuration :) I don't have any experience with nginx, and I<br />dought my users think it's a good idea to change, as they rely on<br />..htaccess features in apache.<br /><br />Anyhow, why do you mean that nginx can do a better job when running<br />php-fpm ?]]></description>
<dc:creator>Daniel Bielefeldt</dc:creator>
<category>Php-fpm Mailing List - English</category><pubDate>Wed, 01 Dec 2010 01:18:01 -0500</pubDate></item>
<item>
<guid>http://forum.nginx.org/read.php?3,154587,154593#msg-154593</guid>
<title>Re: Problem with mod_rewrite when using trailing forward slash</title><link>http://forum.nginx.org/read.php?3,154587,154593#msg-154593</link><description><![CDATA[On Tue, Nov 30, 2010 at 7:15 AM, dbn &lt;dbn@bielefeldtsolutions.dk&gt; wrote:<br /><br />&gt; When I call this url: domain.ext/pagename it should redirect the<br />&gt; request to index.php/pagename, but instead I get a 404 error message.<br />&gt; &quot;No input file specified&quot;<br /><br />well no input specified means its hitting the PHP interpreter, and<br />most of the time its because the file doesn't exist or SCRIPT_FILENAME<br />or whatever PHP needs to know to load the file is incorrect.<br /><br />use nginx. :)]]></description>
<dc:creator>mike</dc:creator>
<category>Php-fpm Mailing List - English</category><pubDate>Tue, 30 Nov 2010 18:56:00 -0500</pubDate></item>
<item>
<guid>http://forum.nginx.org/read.php?3,154587,154587#msg-154587</guid>
<title>Problem with mod_rewrite when using trailing forward slash</title><link>http://forum.nginx.org/read.php?3,154587,154587#msg-154587</link><description><![CDATA[Hi,<br /><br />I have configured a server for shared hosting using apache,<br />mod_fastcgi and php-fpm.<br />Everyting seems to work fine, just not when using full_path for search<br />engine optimization.<br /><br />Apache i version 2.2.16<br />PHP is version 5.2.14<br />mod_fastcgi is version 2.4.6<br /><br />This is an example of my .htacces file<br /><br />RewriteEngine on<br />RewriteCond %{REQUEST_FILENAME} !-f<br />RewriteCond %{REQUEST_FILENAME} !-d<br /><br />RewriteRule ^(.*)$ index.php/$1 [L]<br /><br />and this is the virtualhost configuration<br /><br />FastCgiExternalServer /usr/data/www/domain.ext/.virtual_html/docs -<br />socket /usr/data/www/.fpm-sockets/domain.ext.sock<br />AddHandler php-fastcgi .php .phtml .php4 .php5 .php3<br />Action php-fastcgi /virtualhtml<br />Alias /virtualhtml /usr/data/www/domain.ext/.virtual_html/docs/<br /><br />When I call this url: domain.ext/pagename it should redirect the<br />request to index.php/pagename, but instead I get a 404 error message.<br />&quot;No input file specified&quot;<br /><br />Anybody know how to make this work ? I've been searching google, but<br />unfortunately with no usefull result..<br /><br />Thanks in advance. Daniel]]></description>
<dc:creator>dbn</dc:creator>
<category>Php-fpm Mailing List - English</category><pubDate>Tue, 30 Nov 2010 18:24:01 -0500</pubDate></item>
</channel>
</rss>