Pages : 1
#1 Le 30/05/2007, à 22:53
- TTP
mod_proxy d'apache et location
Bonjour,
j'ai depuis quelquetemps maitenant monté mon serveur sous ubuntu 6.10,
Mais je rencontre un problème,
j'aimerais pouvoir accéder à mon port 20000 ou 10000 en localhost en tappant un adresse telle que http://www.mondomaine/webmin. (de plus j'aimerais accéder au port 4711 d'un autre ordi de la même facon).
Pour cela j'ai utilisé le mod_proxy d'apache, que j'ai mis dans un location, comme vous pouvez le voir dans la config de mon virtualhost :
NameVirtualHost *
<VirtualHost *>
ServerAdmin adriengallou@gmail.com
DocumentRoot /var/www
<Directory />
Options FollowSymLinks
AllowOverride All
# AllowOverride None
</Directory>
<Directory /var/www/>
Options -Indexes FollowSymLinks MultiViews
#AllowOverride all
#AllowOverride AuthConfig
Order allow,deny
allow from all
# Uncomment this directive is you want to see apache2's
# default start page (in /apache2-default) when you go to /
#RedirectMatch ^/$ /apache2-default/
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog /var/log/apache2/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/access.log combined
ServerSignature On
Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>
ProxyPreserveHost on
<Location /ASPTest/>
ProxyPassReverse /
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Location>
ProxyPass /ASPTest/ http://192.168.1.11/
<Location "/emule">
RewriteRule ^/(.*) http://168.1.11:4711/$1 [P,L]
ProxyPassReverse /emule/
#Allow from 127.0.0.0/255.0.0.0 ::1/128
Allow from all
AddDefaultCharset UTF-8
# ProxyPassReverse / http://168.1.11:4711/
</Location>
ProxyPass /emule/ http://192.168.1.11:4711/
<Location "/webmin">
ProxyPassReverse /
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Location>
ProxyPass /webmin/ http://192.168.1.2:10000/
<Location /usermin/>
ProxyPassReverse /
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Location>
ProxyPass /usermin/ http://192.168.1.2:20000/
</VirtualHost>
Le problème est lel suivant :
Je prends l'exemple de webmin : j'arrive à accéder à la page de connection. Jusque la tout fonctionne bien, mais lorsque j'essaie de me connecter, il m'envoi sur la page http://www.zone-ttp.com/session_login.cgi alors qu'il devrait m'envoyer vers http://www.zone-ttp.com/webmin/session_login.cgi
avez vous une idée qui me permettrait de faire fonctionner cela ?
#2 Le 06/06/2007, à 22:38
- TTP
Re : mod_proxy d'apache et location
j'ai fait des recherche, et apparament il faudrait utiliser le mod_proxy_html.
pour pouvoir utiliser ProxyHTMLURLMap
Je vais tenter de l'installer puis voir si ca fonctionne.
Je vous tiens au courant
Dernière modification par TTP (Le 06/06/2007, à 22:39)
Hors ligne
#3 Le 07/06/2007, à 18:31
- TTP
Re : mod_proxy d'apache et location
Je n'ai pas trouvé comment installer le mod_proxy_html,
Apparament il faut le compiler car il n'y a que le fichiers mod_proxy_html.c de disponible
Quelqun saurait comment faire pour l'installer ?
Hors ligne
Pages : 1