PROXY与rewriterule

时间:2014-06-11 05:41:39

标签: apache mod-rewrite proxy

我有这个网址: http://rss.tipinoncomuni.it/parks/news/dettaglio.php?id=26699

我希望用这个虚拟主机重写它,转换为

http://www.parks.it//news/dettaglio.php?id=26699

**

<VirtualHost *:80>
        ServerAdmin webmaste@tipinoncomuni.it
        ErrorLog ${APACHE_LOG_DIR}/error.log
        # Possible values include: debug, info, notice, warn, error, crit,
        # alert, emerg.
        LogLevel debug
        CustomLog ${APACHE_LOG_DIR}/access.log combined
  ServerName rss.tipinoncomuni.it
  ProxyRequests On
  RewriteEngine On
  RewriteRule ^parks/(.*) http://www.parks.it/$1 [L,P,QSA]
</VirtualHost>

**

服务器的响应总是:

  

未找到

     

在此未找到请求的网址/parks/news/dettaglio.php   服务器

     

rss.tipinoncomuni.it端口80上的Apache / 2.2.22(Ubuntu)服务器

这是重写日志:

  

88.57.240.67 - - [11 / Jun / 2014:07:43:48 +0200] [rss.tipinoncomuni.it/sid#7f43068a59b0][rid#7f4303d9e0a0/initial](3)   应用模式&#39; ^ sole /(。)&#39;到uri&#39; /parks/news/dettaglio.php'   88.57.240.67 - - [11 / Jun / 2014:07:43:48 +0200] [rss.tipinoncomuni.it/sid#7f43068a59b0][rid#7f4303d9e0a0/initial](3)   应用模式&#39; ^(/ alfresco。)&#39;到uri&#39; /parks/news/dettaglio.php'   88.57.240.67 - - [11 / Jun / 2014:07:43:48 +0200] [rss.tipinoncomuni.it/sid#7f43068a59b0][rid#7f4303d9e0a0/initial](3)   应用模式&#39; ^(/ share。)&#39;到uri&#39; /parks/news/dettaglio.php'   88.57.240.67 - - [11 / Jun / 2014:07:43:48 +0200] [rss.tipinoncomuni.it/sid#7f43068a59b0][rid#7f4303d9e0a0/initial](1)   通过/parks/news/dettaglio.php   88.57.240.67 - - [11 / Jun / 2014:07:43:48 +0200] [rss.tipinoncomuni.it/sid#7f43068a59b0][rid#7f4301b990a0/initial](2)   使用请求的uri /parks/news/dettaglio.php初始化重写引擎   88.57.240.67 - - [11 / Jun / 2014:07:43:48 +0200] [rss.tipinoncomuni.it/sid#7f43068a59b0][rid#7f4301b990a0/initial](3)   应用模式&#39; ^ sole /(.)&#39;到uri&#39; /parks/news/dettaglio.php'   88.57.240.67 - - [11 / Jun / 2014:07:43:48 +0200] [rss.tipinoncomuni.it/sid#7f43068a59b0][rid#7f4301b990a0/initial](3)   应用模式&#39; ^(/ alfresco。)&#39;到uri&#39; /parks/news/dettaglio.php'   88.57.240.67 - - [11 / Jun / 2014:07:43:48 +0200] [rss.tipinoncomuni.it/sid#7f43068a59b0][rid#7f4301b990a0/initial](3)   应用模式&#39; ^(/ share。)&#39;到uri&#39; /parks/news/dettaglio.php'   88.57.240.67 - - [11 / Jun / 2014:07:43:48 +0200] [rss.tipinoncomuni.it/sid#7f43068a59b0][rid#7f4301b990a0/initial](1)   通过/parks/news/dettaglio.php   88.57.240.67 - - [11 / Jun / 2014:07:43:48 +0200] [rss.tipinoncomuni.it/sid#7f43068a59b0][rid#7f4303da00a0/initial](2)   使用请求的uri /favicon.ico初始化重写引擎   88.57.240.67 - - [11 / Jun / 2014:07:43:48 +0200] [rss.tipinoncomuni.it/sid#7f43068a59b0][rid#7f4303da00a0/initial](3)   应用模式&#39; ^ sole /(。)&#39;到uri&#39; /favicon.ico'   88.57.240.67 - - [11 / Jun / 2014:07:43:48 +0200] [rss.tipinoncomuni.it/sid#7f43068a59b0][rid#7f4303da00a0/initial](3)   应用模式&#39; ^(/ alfresco。)&#39;到uri&#39; /favicon.ico'   88.57.240.67 - - [11 / Jun / 2014:07:43:48 +0200] [rss.tipinoncomuni.it/sid#7f43068a59b0][rid#7f4303da00a0/initial](3)   应用模式&#39; ^(/ share。*)&#39;到uri&#39; /favicon.ico'   88.57.240.67 - - [11 / Jun / 2014:07:43:48 +0200] [rss.tipinoncomuni.it/sid#7f43068a59b0][rid#7f4303da00a0/initial](1)   通过/favicon.ico

0 个答案:

没有答案