Hi,
I just upgrade a few apps from Rails 2.3.18 to Rails 4.0.4 and make sure
the apps are running on WEBrick. I follow the steps I have done to set
up
apps by Apache on Snow Leopard, first install passenger and add the
following to /etc/apache2/httpd.conf
LoadModule passenger_module
/usr/local/opt/passenger/libexec/buildout/apache2/mod_passenger.so
PassengerRoot
/usr/local/opt/passenger/libexec/lib/phusion_passenger/locations.ini
PassengerDefaultRuby /usr/bin/ruby
then try to add RailsBaseURI /most (most is my rail project) in the
.conf
inside /etc/apache2/sites/,
but no .conf file there anymore for Mac Marvericks, rather I find the
.conf
in folder
/Library/Server/Web/Config/apache2/sites, so I add the “RailsBaseURI
/most”
in the
file
Then I add a symlink as following:
ln -s /Library/WebServer/most/public /Library/WebServer/Documents/most
sudo apachectl stop
sudo apachectl start
Page http://localhost/most is like following:
Index of /most
- Parent Directory http://localhost/
- 404.html http://localhost/most/404.html
- 422.html http://localhost/most/422.html
- 500.html http://localhost/most/500.html
- favicon.ico http://localhost/most/favicon.ico
- robots.txt http://localhost/most/robots.txt
Apache/2.2.26 (Unix) Phusion_Passenger/4.0.41 mod_ssl/2.2.26
OpenSSL/0.9.8y
DAV/2 mod_wsgi/3.3 Python/2.7.5 Server at localhost Port 80
and couldn’t display http://localhost/most/rannumgenerator/index
(rannumgenerator is controller I generated in most project).
Wonder if something that I should do for Mac Mavericks or some setting
for
Apache that I am not aware?
Thanks!
Liz H.