Hi,

I'm trying to make a good-looking URL for a website created with nuxeo.
For exemple, the original nuxeo URL is :
http://server.xx:8080/web/XXXXX.seam

I cannot asks to the end-user typing that. My users should type :
"server.xx" in the browser URL bar. And the server then do the right things.

I'm trying to do it with mod_proxy and rewrite rules of apache. But in that case, each website is a particular case and need the creation of a particular set of rules, wich is time-consuming and sometimes really hard to make.
Here is an exemple of the last website I needed to configure with apache :

<Proxy *>
    Order allow,deny
    allow from all
</Proxy>

<VirtualHost *:80>
    ProxyVia On
    ProxyRequests Off
    RewriteEngine On

# empêche l'utilisation des interfaces d'administration depuis le web
    RewriteRule ^/nuxeo$  /  [P,L]
    RewriteRule ^/nuxeo/$  /  [P,L]
    RewriteRule ^/nuxeo/site$   /  [P,L]
    RewriteRule ^/nuxeo/site/$   /  [P,L]

# redirection et proxying des éléments derrière la racine du workspace
    RewriteCond %{REQUEST_URI}  ^/nuxeo/.+
    RewriteCond %{REQUEST_URI}  !^/nuxeo/site/cobelvian/.+
    RewriteRule ^/nuxeo/(.*) /stuffs/$1 [R]
    RewriteRule ^/stuffs/(.*) http://127.0.0.1:8080/nuxeo/$1 [P,L]

# redirection et proxying des éléments dans la racine du workspace
    RewriteCond %{REQUEST_URI}  ^/nuxeo/site/cobelvian/.*
    RewriteRule ^/nuxeo/site/cobelvian/(.*) $1 [R]
    RewriteRule ^/(.*) http://127.0.0.1:8080/nuxeo/site/cobelvian/$1 [P,L]
</VirtualHost>

(I needed to create the virtual directory "stuffs" to separate redirection from /nuxeo/site/cobelvian/* and /nuxeo/some_dir_where_stuffs_sit/* )

-> pretty hard to read and write ... For the moment, I need to configure an other website which seems more simple. Only a /web/ as context. But I have a problem whith a javascript on the homepage that makes my webpage reload instead of live-autocomplete the search area.

-> Do someone know a more simple way to do it? without apache? or with apache but more simple rules?

Thank you very very much,
nm
_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm
To unsubscribe, go to http://lists.nuxeo.com/mailman/options/ecm

Reply via email to