Hi -
I have a RoR installation on debian sarge, serving with Apache2. On the
same machine I also have a phpmyadmin serving. I made a entry in the
/etc/apache2/sites-available/ and did a2ensite .
Also, I edited /etc/hosts to add to the localhost line at the
end, as per directions I found in the Rails Wiki.
These are the symptoms:
From localhost I can get to a controller page with
w3m http:///
and I see the scaffolded data come up. From the external ip I can do
http:////
and I get the welcome to RoR welcome page. So the virtual host setup
seems to work in the
/etc/apache2/sites-available/
file. However, if I try
http:////
I get a route error. Even though this works for localhost with w3m
http://// from the command line.
I have an Alias directive in the virtual host file that reads:
Alias / /var/www/rails//public
without that alias, I wasn’t getting the RoR welcome page from external
before.
The phpmyadmin was also broken after adding my rails virtual host entry
until I added an alias in /etc/phpmyadmin/apache.conf:
Alias /phpmyadmin /var/www/phpmyadmin
How do I get the pages that are serving from my rails app to localhost
to appear on port 80 from external requests? Anyone else with similar
problems?