You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Mbiama (JIRA)" <ji...@apache.org> on 2011/04/07 20:20:05 UTC
[jira] [Created] (AMQNET-325) CLONE -
/Inetpub/site/www/angosso.net/.
CLONE - /Inetpub/site/www/angosso.net/.
---------------------------------------
Key: AMQNET-325
URL: https://issues.apache.org/jira/browse/AMQNET-325
Project: ActiveMQ .Net
Issue Type: New Feature
Components: ActiveMQ
Environment: Linux
Reporter: Mbiama
Assignee: Jim Gomes
# For sites running on a port other than 80
RewriteCond %{HTTP_HOST} !^www\.angosso\.net [NC]
RewriteCond %{HTTP_HOST} !^$
RewriteCond %{SERVER_PORT} !^80$
RewriteRule ^/(.*) http://www.angosso.net:%{SERVER_PORT}/$1 [L,R]
# And for a site running on port 80
RewriteCond %{HTTP_HOST} !^www\.angosso\.net [NC]
RewriteCond %{HTTP_HOST} !^$
RewriteRule ^/(.*) http://www.angosso.net/$1 [L,R]
/~quux/foo/index.html
/~quux/image.gif
RewriteEngine on
RewriteMap user-to-host txt:/path/to/map.user-to-host
RewriteMap group-to-host txt:/path/to/map.group-to-host
RewriteMap entity-to-host txt:/path/to/map.entity-to-host
RewriteRule ^/u/([^/]+)/?(.*) http://${user-to-host:$1|server0}/u/$1/$2
RewriteRule ^/g/([^/]+)/?(.*) http://${group-to-host:$1|server0}/g/$1/$2
RewriteRule ^/e/([^/]+)/?(.*) http://${entity-to-host:$1|server0}/e/$1/$2
RewriteRule ^/([uge])/([^/]+)/?$ /$1/$2/.www/
RewriteRule ^/([uge])/([^/]+)/([^.angosso.net/accueil.html/]+.+) /$1/$2/.www/$3\
drwxrwxr-x 2 netsw users 512 Aug 3 18:39 Audio/
drwxrwxr-x 2 netsw users 512 Jul 9 14:37 Benchmark/
drwxrwxr-x 12 netsw users 512 Jul 9 00:34 Crypto/
drwxrwxr-x 5 netsw users 512 Jul 9 00:41 Database/
drwxrwxr-x 4 netsw users 512 Jul 30 19:25 Dicts/
drwxrwxr-x 10 netsw users 512 Jul 9 01:54 Graphic/
drwxrwxr-x 5 netsw users 512 Jul 9 01:58 Hackers/
drwxrwxr-x 8 netsw users 512 Jul 9 03:19 InfoSys/
drwxrwxr-x 3 netsw users 512 Jul 9 03:21 Math/
drwxrwxr-x 3 netsw users 512 Jul 9 03:24 Misc/
drwxrwxr-x 9 netsw users 512 Aug 1 16:33 Network/
drwxrwxr-x 2 netsw users 512 Jul 9 05:53 Office/
drwxrwxr-x 7 netsw users 512 Jul 9 09:24 SoftEng/
drwxrwxr-x 7 netsw users 512 Jul 9 12:17 System/
drwxrwxr-x 12 netsw users 512 Aug 3 20:15 Typesetting/
drwxrwxr-x 10 netsw users 512 Jul 9 14:08 X11/
Options ExecCGI FollowSymLinks Includes MultiViews
RewriteEngine on
# we are reached via /net.sw/ prefix
RewriteBase /net.sw/
# first we rewrite the root dir to
# the handling cgi script
RewriteRule ^$ netsw-home.cgi [L]
RewriteRule ^index\.html$ netsw-home.cgi [L]
# strip out the subdirs when
# the browser requests us from perdir pages
RewriteRule ^.+/(netsw-[^/]+/.+)$ $1 [L]
# and now break the rewriting for local files
RewriteRule ^netsw-home\.cgi.* - [L]
RewriteRule ^netsw-changes\.cgi.* - [L]
RewriteRule ^netsw-search\.cgi.* - [L]
RewriteRule ^netsw-tree\.cgi$ - [L]
RewriteRule ^netsw-about\.html$ - [L]
RewriteRule ^netsw-img/.*$ - [L]
# anything else is a subdir which gets handled
# by another cgi script
RewriteRule !^netsw-lsdir\.cgi.* - [C]
RewriteRule (.*) netsw-lsdir.cgi/$1
RewriteEngine on
# first try to find it in custom/...
# ...and if found stop and be happy:
RewriteCond /angosso.net/docroot/dir1/%{REQUEST_FILENAME} -f
RewriteRule ^(.+) /angosso.net/docroot/dir1/$1 [L]
# second try to find it in pub/...
# ...and if found stop and be happy:
RewriteCond /angosso.net/docroot/dir2/%{REQUEST_FILENAME} -f
RewriteRule ^(.+) /angosso.net/docroot/dir2/$1 [L]
# else go on for other Alias or ScriptAlias directives,
# etc.
RewriteRule ^(.+) - [PT]
RewriteRule ^xredirect:(.+) /path/to/nph-xredirect.cgi/$1 \
[T=application/x-httpd-cgi,L]
RewriteEngine on
RewriteBase /~quux/
RewriteRule ^hotsheet/(.*)$ http://www.angosso.net/hotsheet/$1 [P]
RewriteEngine on
RewriteBase /~quux/
RewriteRule ^usa-news\.html$ http://www.angosso.net/news/index.html [P]
RewriteEngine on
RewriteCond /mirror/of/remotesite/$1 -U
RewriteRule ^http://www\.remotesite\.com/(.*)$ /mirror/of/remotesite/$1
RewriteEngine on
RewriteMap quux-map prg:/path/to/map.quux.pl
RewriteRule ^/~quux/(.*)$ /~quux/${quux-map:$1}
#!/path/to/perl
# disable buffered I/O which would lead
# to deadloops for the Apache server
$| = 1;
# read URLs one per line from stdin and
# generate substitution URL on stdout
while (<>) {
s|^foo/|bar/|;
print $_;
}
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (AMQNET-325) CLONE -
/Inetpub/site/www/angosso.net/.
Posted by "Mbiama (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AMQNET-325?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mbiama resolved AMQNET-325.
---------------------------
Resolution: Fixed
> CLONE - /Inetpub/site/www/angosso.net/.
> ---------------------------------------
>
> Key: AMQNET-325
> URL: https://issues.apache.org/jira/browse/AMQNET-325
> Project: ActiveMQ .Net
> Issue Type: New Feature
> Components: ActiveMQ
> Environment: Linux
> Reporter: Mbiama
> Assignee: Jim Gomes
> Labels: Angosso
> Original Estimate: 180h
> Remaining Estimate: 180h
>
> # For sites running on a port other than 80
> RewriteCond %{HTTP_HOST} !^www\.angosso\.net [NC]
> RewriteCond %{HTTP_HOST} !^$
> RewriteCond %{SERVER_PORT} !^80$
> RewriteRule ^/(.*) http://www.angosso.net:%{SERVER_PORT}/$1 [L,R]
> # And for a site running on port 80
> RewriteCond %{HTTP_HOST} !^www\.angosso\.net [NC]
> RewriteCond %{HTTP_HOST} !^$
> RewriteRule ^/(.*) http://www.angosso.net/$1 [L,R]
> /~quux/foo/index.html
> /~quux/image.gif
> RewriteEngine on
> RewriteMap user-to-host txt:/path/to/map.user-to-host
> RewriteMap group-to-host txt:/path/to/map.group-to-host
> RewriteMap entity-to-host txt:/path/to/map.entity-to-host
> RewriteRule ^/u/([^/]+)/?(.*) http://${user-to-host:$1|server0}/u/$1/$2
> RewriteRule ^/g/([^/]+)/?(.*) http://${group-to-host:$1|server0}/g/$1/$2
> RewriteRule ^/e/([^/]+)/?(.*) http://${entity-to-host:$1|server0}/e/$1/$2
> RewriteRule ^/([uge])/([^/]+)/?$ /$1/$2/.www/
> RewriteRule ^/([uge])/([^/]+)/([^.angosso.net/accueil.html/]+.+) /$1/$2/.www/$3\
> drwxrwxr-x 2 netsw users 512 Aug 3 18:39 Audio/
> drwxrwxr-x 2 netsw users 512 Jul 9 14:37 Benchmark/
> drwxrwxr-x 12 netsw users 512 Jul 9 00:34 Crypto/
> drwxrwxr-x 5 netsw users 512 Jul 9 00:41 Database/
> drwxrwxr-x 4 netsw users 512 Jul 30 19:25 Dicts/
> drwxrwxr-x 10 netsw users 512 Jul 9 01:54 Graphic/
> drwxrwxr-x 5 netsw users 512 Jul 9 01:58 Hackers/
> drwxrwxr-x 8 netsw users 512 Jul 9 03:19 InfoSys/
> drwxrwxr-x 3 netsw users 512 Jul 9 03:21 Math/
> drwxrwxr-x 3 netsw users 512 Jul 9 03:24 Misc/
> drwxrwxr-x 9 netsw users 512 Aug 1 16:33 Network/
> drwxrwxr-x 2 netsw users 512 Jul 9 05:53 Office/
> drwxrwxr-x 7 netsw users 512 Jul 9 09:24 SoftEng/
> drwxrwxr-x 7 netsw users 512 Jul 9 12:17 System/
> drwxrwxr-x 12 netsw users 512 Aug 3 20:15 Typesetting/
> drwxrwxr-x 10 netsw users 512 Jul 9 14:08 X11/
> Options ExecCGI FollowSymLinks Includes MultiViews
> RewriteEngine on
> # we are reached via /net.sw/ prefix
> RewriteBase /net.sw/
> # first we rewrite the root dir to
> # the handling cgi script
> RewriteRule ^$ netsw-home.cgi [L]
> RewriteRule ^index\.html$ netsw-home.cgi [L]
> # strip out the subdirs when
> # the browser requests us from perdir pages
> RewriteRule ^.+/(netsw-[^/]+/.+)$ $1 [L]
> # and now break the rewriting for local files
> RewriteRule ^netsw-home\.cgi.* - [L]
> RewriteRule ^netsw-changes\.cgi.* - [L]
> RewriteRule ^netsw-search\.cgi.* - [L]
> RewriteRule ^netsw-tree\.cgi$ - [L]
> RewriteRule ^netsw-about\.html$ - [L]
> RewriteRule ^netsw-img/.*$ - [L]
> # anything else is a subdir which gets handled
> # by another cgi script
> RewriteRule !^netsw-lsdir\.cgi.* - [C]
> RewriteRule (.*) netsw-lsdir.cgi/$1
> RewriteEngine on
> # first try to find it in custom/...
> # ...and if found stop and be happy:
> RewriteCond /angosso.net/docroot/dir1/%{REQUEST_FILENAME} -f
> RewriteRule ^(.+) /angosso.net/docroot/dir1/$1 [L]
> # second try to find it in pub/...
> # ...and if found stop and be happy:
> RewriteCond /angosso.net/docroot/dir2/%{REQUEST_FILENAME} -f
> RewriteRule ^(.+) /angosso.net/docroot/dir2/$1 [L]
> # else go on for other Alias or ScriptAlias directives,
> # etc.
> RewriteRule ^(.+) - [PT]
> RewriteRule ^xredirect:(.+) /path/to/nph-xredirect.cgi/$1 \
> [T=application/x-httpd-cgi,L]
> RewriteEngine on
> RewriteBase /~quux/
> RewriteRule ^hotsheet/(.*)$ http://www.angosso.net/hotsheet/$1 [P]
> RewriteEngine on
> RewriteBase /~quux/
> RewriteRule ^usa-news\.html$ http://www.angosso.net/news/index.html [P]
> RewriteEngine on
> RewriteCond /mirror/of/remotesite/$1 -U
> RewriteRule ^http://www\.remotesite\.com/(.*)$ /mirror/of/remotesite/$1
> RewriteEngine on
> RewriteMap quux-map prg:/path/to/map.quux.pl
> RewriteRule ^/~quux/(.*)$ /~quux/${quux-map:$1}
> #!/path/to/perl
> # disable buffered I/O which would lead
> # to deadloops for the Apache server
> $| = 1;
> # read URLs one per line from stdin and
> # generate substitution URL on stdout
> while (<>) {
> s|^foo/|bar/|;
> print $_;
> }
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira