Oh yes, I forgot to tell you how to disable the default site.

>From the shell run "sudo a2dissite default".

Then run your preferred editor, and create a new file in /etc/apache2/
sites-enabled, and name it whatever you want. I usually name it
something similar to the domain name of the app or site.

If you were to use vi, you do something like:

sudo vi /etc/apache2/sites-enabled/project1

I

<VirtualHost *:80>
....
</VirtualHost>

ESC
:w
:q

And then you'd run "sudo a2ensite project1" (or whatever you named the
file)
And finally run "sudo /etc/init.d/apache2 reload".

And walla! :)

On Apr 23, 6:28 pm, Henry Oss <[email protected]> wrote:
> Hi
>
> I am a newbie (which you probably guessed from the subject) and have
> just installed ruby 1.8.7, rails 2.3.5 and apache 2.2.12 on ubuntu 9.10.
>
> I have created a rails app and edited my apache config as shown below.
> The Rails "Welcome aboard" page displays, but when I click on "About
> your application's environment" I get
>
> "Not Found
>
> The requested URL /public/rails/info/properties was not found on this
> server.
> Apache/2.2.12 (Ubuntu) Server at localhost Port 80"
>
> Can anybody tell me what I have done wrong?
>
> Thanks in advance
>
> -------------------------------------------------------------------------
> Apache config at /etc/apache2/sites-available/default
> <VirtualHost *:80>
>   ServerAdmin webmas...@localhost
>
>   DocumentRoot /home/henry/Projects/Project1
>   <Directory />
>     Options FollowSymLinks
>     AllowOverride None
>   </Directory>
>   <Directory /home/henry/Projects/Project1/>
>     Options Indexes FollowSymLinks MultiViews ExecCGI
>     AllowOverride All
>     Order allow,deny
>     allow from all
>     AddHandler cgi-script .cgi
>   </Directory>
>
>   ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
>   <Directory "/usr/lib/cgi-bin">
>     AllowOverride None
>     Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
>     Order allow,deny
>     Allow from all
>   </Directory>
>
>   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
>
>     Alias /doc/ "/usr/share/doc/"
>     <Directory "/usr/share/doc/">
>         Options Indexes MultiViews FollowSymLinks
>         AllowOverride None
>         Order deny,allow
>         Deny from all
>         Allow from 127.0.0.0/255.0.0.0 ::1/128
>     </Directory>
>
> </VirtualHost>
> --
> Posted viahttp://www.ruby-forum.com/.
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Ruby on Rails: Talk" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group 
> athttp://groups.google.com/group/rubyonrails-talk?hl=en.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to