ERLEDIGT
NEIN
NEIN
ANTWORTEN
1
1
ZUGRIFFE
3866
3866
EMPFEHLEN
-
Hey,
nachdem ich der Anleitung (http://wiki.rubyonrails.com/rails/pa...artedWithRails) gefolgt bin, komme ich nun zu einem Punkt, an dem ich nun nicht weiterkomme.
Alle Ornder/Dateien wurden wie in der Anleitung übernommen.
Um es Vorweg zu nehmen Ruby on Rails läuft bei mir perfekt, das Problem ist aber, dass es unter DirectoryRoot läuft. Ich dies aber nicht möchte.
Ich habe für die Konfiguration des Apache2-Servers folgende Einstellung aus der Anleitung übernommen:
Code :1 2 3 4 5 6 7 8 9 10 11 12 13 14
<VirtualHost *:80> SetEnv RAILS_ENV development ServerName rails DocumentRoot /path/application/public/ ErrorLog /path/application/log/apache.log <Directory /path/application/public/> Options ExecCGI FollowSymLinks AddHandler cgi-script .cgi AllowOverride all Order allow,deny Allow from all </Directory> </VirtualHost>
Nach dieser Einstellung ist DirectoryRoot auf "/path/application/public/" festgelegt worden.
Ich möchte aber, dass man erst unter "http://localhost/rubyonrails/" darau zurückgreift.
Weiß hier jmd. Rat ? Wäre echt nett
Schon mal vielen Dank im Voraus für die Postings
-
Dann setzt du
Code :1 2 3 4 5 6 7 8 9 10 11 12 13 14
<VirtualHost *:80> SetEnv RAILS_ENV development ServerName rails DocumentRoot /var/www ErrorLog /var/log/apache.log <Directory /var/www/rubyonrails> Options ExecCGI FollowSymLinks AddHandler cgi-script .cgi AllowOverride all Order allow,deny Allow from all </Directory> </VirtualHost>
je nachdem, in welchem Ordner du das liegen haben möchtest... Jetzt ist dein Webserver-Verzeichnis /var/www (unterscheidet sich aber in den Distributionen) und rubyonrails liegt in dem sogenannten Verzeichnis. Versuch es mal!
Ähnliche Themen
-
Ruby Instant Rails
Von Slizzzer im Forum Sonstige SprachenAntworten: 0Letzter Beitrag: 16.03.10, 12:07 -
Softwareentwickler/in Ruby on Rails
Von univativ im Forum Stellenangebote (entgeltlich)Antworten: 0Letzter Beitrag: 19.06.09, 16:57 -
PHP oder Ruby on Rails?
Von Theranium im Forum Coders TalkAntworten: 5Letzter Beitrag: 19.11.08, 19:24 -
Suse10.1 + Plesk8.4.0 = Ruby on Rails
Von cofter im Forum Hosting & WebserverAntworten: 0Letzter Beitrag: 25.05.08, 19:03 -
Ruby on Rails VS. ...
Von Thomas Darimont im Forum Coders TalkAntworten: 1Letzter Beitrag: 20.05.07, 22:50





Zitieren
Login





