Bonjour Mac ou tout indien Apache qui se respecte ...
Voici mon problème:
J'ai une ip Wan fixe et je souhaite faire pointer 2 sous domaines sur 2 serveurs différents, exemple:
sur le serveur dns d'infomaniak (mon hébergeur) j'ai entré:
serv1.mondomaine.com = 84.253.XXX.XXX (mon ipd fixe)
erp.mondomaine.com = 84.253.XXX.XXX (mon ipd fixe)
localement:
serv1.mondomaine.com = 192.168.0.66
erp.mondomaine.com = 192.168.0.35
J'utilise virtualmin (ubuntu 12.04 lamp Apache2) sur le premier serveur, tout est ok , serv1.mondomaine.com retourne le bon dossier.
Sur le serveur 2 est installé un erp (ubuntu 12.04 avec nginx) qui redirige globalement toutes les connexions entrantes sur https://192.168.0.35
Malheureusement j'ai une erreur 503 lorsque j'appelle erp.mondomaine.com
voici ma conf pour /etc/apache2/sites-available/erp.mondomaine.com.conf :
voici les logs pour mes 2 essais en http ou https:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39 <VirtualHost 84.253.XXX.XXX> SuexecUserGroup "#1005" "#1005" ServerName erp.mondomaine.com DocumentRoot /home/erp/public_html RewriteLogLevel 3 ErrorLog /var/log/virtualmin/erp.mondomaine.com_error_log CustomLog /var/log/virtualmin/erp.mondomaine.com_access_log combined ScriptAlias /cgi-bin/ /home/erp/cgi-bin/ ScriptAlias /awstats/ /home/erp/cgi-bin/ DirectoryIndex index.html index.htm index.php index.php4 index.php5 <Directory /home/erp/public_html> Options -Indexes +IncludesNOEXEC +SymLinksIfOwnerMatch +ExecCGI allow from all AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch AddHandler fcgid-script .php AddHandler fcgid-script .php5 FCGIWrapper /home/erp/fcgi-bin/php5.fcgi .php FCGIWrapper /home/erp/fcgi-bin/php5.fcgi .php5 </Directory> <Directory /home/erp/cgi-bin> allow from all AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch </Directory> RewriteEngine on RemoveHandler .php RemoveHandler .php5 php_admin_value engine Off IPCCommTimeout 31 FcgidMaxRequestLen 1073741824 <Proxy *> allow from all </Proxy> <Files awstats.pl> AuthName "erp.mondomaine.com statistics" AuthType Basic AuthUserFile /home/erp/.awstats-htpasswd require valid-user </Files> </VirtualHost>
Comment debugger cette histoire ?
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2 [Thu Sep 19 12:17:53 2013] [error] (110)Connection timed out: proxy: HTTPS: attempt to connect to 192.168.0.35:443 (192.168.0.35) failed [Thu Sep 19 13:33:27 2013] [error] (110)Connection timed out: proxy: HTTP: attempt to connect to 192.168.0.35:80 (192.168.0.35) failed
merci.
Fred
Partager