A croire que je suis destiné à me vautrer. En fait, ça ne marche pas du tout : au lieu de n'avoir accès qu'à mon site traditionnel, je n'ai plus accès qu'à la page d'accueil de Rails, ce qui me déplait plutôt pas mal.
Récaapitulons :
j'ai donc séparé mes infos dans deux fichiers de config :
nicolas-delsaux.homelinux.net_port_80 :
ServerName nicolas.delsaux.is-a-geek.net
DocumentRoot /var/www/site
<Directory /var/www/site>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
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/
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
[^] # Re: Allelouiah !
Posté par Nicolas Delsaux . En réponse au message Ubuntu, Apache2 et, surtout, des VirtualHost qui ne marchent pas. Évalué à 1.
Récaapitulons :
j'ai donc séparé mes infos dans deux fichiers de config :
nicolas-delsaux.homelinux.net_port_80 :
<VirtualHost *:80>
ServerAdmin nicolas.delsaux@gmail.com
ServerName nicolas-delsaux.homelinux.net
DocumentRoot /var/www/ror
ProxyPass / http://localhost:3000/
ProxyPassReverse / http://localhost:3000/
ProxyRequests Off
</VirtualHost>
et
nicolas-delsaux.is-a-geek.net_port_80
<VirtualHost *:80>
ServerAdmin nicolas.delsaux@gmail.com
ServerName nicolas.delsaux.is-a-geek.net
DocumentRoot /var/www/site
<Directory /var/www/site>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
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/
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
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 Off
</VirtualHost>
Bon, et comme H passe avant I, je me retrouve avec seulement mon site Rails. Bizarre bizarre ...
Je me pose une question ridiculement stupide : est-ce qu'il se pourrait que ce soit la redirection depuis dyndns qui ne marche pas si bien que ça ?