Hey guys,
I got stuck with this problem. Customer is running a NetSUS 2.0 with two branches on it. (e.g. http://1.2.3.4/content/catalogs/index_root.sucatalog)
If I point clients directly to this URL, the sucatalog will not be found. On github I found that you have to create a .htaccess file in the root of the Reposado repository with the following contents:
RewriteEngine On
Options FollowSymLinks
RewriteBase /
RewriteCond %{HTTP_USER_AGENT} Darwin/8
RewriteRule ^index(.).sucatalog$ content/catalogs/index$1.sucatalog [L]
RewriteCond %{HTTP_USER_AGENT} Darwin/9
RewriteRule ^index(.).sucatalog$ content/catalogs/others/index-leopard.merged-1$1.sucatalog [L]
RewriteCond %{HTTP_USER_AGENT} Darwin/10
RewriteRule ^index(.).sucatalog$ content/catalogs/others/index-leopard-snowleopard.merged-1$1.sucatalog [L]
RewriteCond %{HTTP_USER_AGENT} Darwin/11
RewriteRule ^index(.).sucatalog$ content/catalogs/others/index-lion-snowleopard-leopard.merged-1$1.sucatalog [L]
RewriteCond %{HTTP_USER_AGENT} Darwin/12
RewriteRule ^index(.).sucatalog$ content/catalogs/others/index-mountainlion-lion-snowleopard-leopard.merged-1$1.sucatalog [L]
RewriteCond %{HTTP_USER_AGENT} Darwin/13
RewriteRule ^index(.).sucatalog$ content/catalogs/others/index-10.9-mountainlion-lion-snowleopard-leopard.merged-1$1.sucatalog [L]
All right so far, I placed this in /src/SUS/html, restarted apache2 and nothing happend. When doing a "curl --user-agent "Darwin/12.5.0" http://1.2.3.4/content/catalogs/index_root.sucatalog" on the server, following answer is returned:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL /content/catalogs/index_root.sucatalog was not found on this server.</p>
<hr>
<address>Apache/2.2.22 (Ubuntu) Server at 10.145.6.25 Port 80</address>
</body></html>
So, I got stuck on this place. I created a .htaccess in multiple subdirectories of /srv/SUS/* but nothing changed.
Any hints on this? It's not practicable to redirect every OS to another SUS URL manually…
Thanks! :)
