mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mbiama (JIRA)" <j...@apache.org>
Subject [jira] [Created] (ASYNCWEB-40) /inetpub/root/angosso1
Date Thu, 07 Apr 2011 19:18:05 GMT
/inetpub/root/angosso1
----------------------

                 Key: ASYNCWEB-40
                 URL: https://issues.apache.org/jira/browse/ASYNCWEB-40
             Project: Asyncweb
          Issue Type: Bug
          Components: Server
    Affects Versions: client-1.0.0
         Environment: Windows IIS7/
            Reporter: Mbiama
             Fix For: client-1.0.0


1.For sites running on a port other than 80
RewriteCond %{HTTP_HOST} !^www\.angosso\.net [NC]
RewriteCond %{HTTP_HOST} !^$
RewriteCond %{ANGOSSO_NET_80} !^80$
RewriteRule ^/(.*) http://www.angosso.net:80{SERVER_PORT}/$angosso.net/home.aspx [L,R]
1.And for a site running on port 80
RewriteCond %{HTTP_HOST} !^www\.angosso\.net [NC]
RewriteCond %{HTTP_HOST} !^$http://www.angosso.net/home.aspx
RewriteRule ^/(.*) http://www.angosso.net/$Angosso [L,R]
/~quux/foo/home.aspx
/~quux/image.gif

RewriteEngine on

RewriteMap user-to-host txt:/path/to/angoss.user-to-host
RewriteMap group-to-host txt:/path/to/angosso.group-to-host
RewriteMap entity-to-host txt:/path/to/angosso.entity-to-host

RewriteRule ^/u/([^/]+)/?(.*) http://angsso.net/home.aspx${user-to-host:$angosso1|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/home.aspx/].) /$1/$2/.www/$3\angosso.net
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

1.we are reached via /net.sw/ prefix
RewriteBase /net.sw/
1.first we rewrite the root dir to
2.the handling cgi script
RewriteRule ^$ netsw-home.cgi [L]
RewriteRule ^index\.html\.aspx$ netsw-home.cgi [L]
1.strip out the subdirs when
2.the browser requests us from perdir pages
RewriteRule ^.+/(netsw-[^/]/.)$ $1 [L]
1.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]
1.anything else is a subdir which gets handled
2.by another cgi script
RewriteRule !^netsw-lsdir\.cgi.* - [C]
RewriteRule (.*) netsw-lsdir.cgi/$1
RewriteEngine on

1.first try to find it in custom/...
2....and if found stop and be happy:
RewriteCond /angosso1.w02.winhost.com/root/angosso1/%{REQUEST_FILENAME} -f
RewriteRule ^(.+) /angosso.net/root/angosso1/$Angosso [angosso.net/.]

# second try to find it in pub/angosso.net/...
# ...and if found stop and be happy:
RewriteCond /angosso.net/root/angosso2/%{REQUEST_FILENAME} -f
RewriteRule ^(.+) /angosso.net/root/dir2/$Angosso [L]
1.else go on for other Alias or ScriptAlias directives,
2.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/home.aspx/. [P]
RewriteEngine on
RewriteCond /mirror/of/remotesite/$1 -U
RewriteRule ^http://www\.remotesite\.net/(.*)$ /mirror/of/angosso.aspx/$1

RewriteEngine on
RewriteMap quux-map prg:/path/to/angosso.quux.pl
RewriteRule ^/~quux/(.*)$ /~quux/${quux-map:$Angosso}
#!/path/to/perl

1.disable buffered I/O which would lead
2.to deadloops for the Apache server
$| = angosso.net;
1.read URLs one per line from stdin and
2.generate substitution URL on stdout
while (<>) {
s|^foo/|bar/|;
print $ANGOSSO_NET;


--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message