search for: rewritebase

Displaying 20 results from an estimated 53 matches for "rewritebase".

2006 Jun 09
1
RewriteBase w/ Capistrano on a shared host
Hello, I''m on a shared hosting, and tried this as a test: [code] svn co {repo} to /home/{user}/{appname} ln -s {appname}/public/ public_html chmod -R 755 trunk [/code] With the .htaccess file''s RewriteBase directive set to / This setup works great, with no problems at all. Here''s my issue, I''m attempting to use Capistrano, which is setup by default to checkout my app into a releases/{datetime} folder, then it creates a symlink inside my rails app directory named ''curren...
2009 Feb 27
0
Rails 2.2 + Apache 2.2 + RewriteBase /app = broken
I''m trying to run a rails app under an alias like this: Alias /app /var/www/railsapp/public RewriteBase /app ... I am using the same configuration that has worked for the app under Rails 1, but since I upgraded it to the latest version I get: ---- The page you were looking for doesn''t exist. You may have mistyped the address or the page may have moved. ---- In the application log, I find...
2006 May 11
5
Problem running application in cpanel
Hi, I installed rails following the instruccions from http://wiki.rubyonrails.com/rails/pages/HowtoInstallAndRunRubyOnRailsOnCpanel but when i try see the application i have a 500 Internal Server Error, this is only with apache because i can run with webrick Please i am desesperate -------------- next part -------------- An HTML attachment was scrubbed... URL:
2005 Mar 05
1
How to provide Rails hosting on Apache/FastCGI enviroment?
...s(ln -s) /home/eric/rails/funshop/public to /home/eric/public_html/funshop. (public_html is web root) Now, anyone can access http://eric.hosting.com/funshop. /home/eric/rails/public/.htaccess: <snip> # This works well with rails-0.9.5 AddHandler fastcgi-script .fcgi RewriteEngine On RewriteBase /funshop/dispatch.fcgi RewriteRule ^$ /funshop/manager/index [R] RewriteRule ^([-_a-zA-Z0-9]+)$ /funshop/$1/ [R] # other trivial parts are same with rails-0.9.5. </snip> <snip> # This doesn''t work around with rails-0.10.0 # But if I puts alias directive in apache.conf, then...
2006 Aug 13
3
Rewrite problem or routing issue?
...ails # By default the cgi dispatcher is used which is very slow # # For better performance replace the dispatcher with the fastcgi one # # Example: RewriteRule ^(.*)$ dispatch.fcgi [QSA,L] RewriteEngine On # If your Rails application is accessed via an Alias directive, # then you MUST also set the RewriteBase in this htaccess file. # # Example: # Alias /myrailsapp /path/to/myrailsapp/public # RewriteBase /myrailsapp RewriteRule ^$ index.html [QSA] RewriteRule ^([^.]+)$ $1.html [QSA] RewriteCond %{REQUEST_FILENAME} !-f #RewriteRule ^(.*)$ dispatch.cgi [QSA,L] # In case Rails experiences terminal er...
2006 Aug 13
1
Rewrite problem?
...ails # By default the cgi dispatcher is used which is very slow # # For better performance replace the dispatcher with the fastcgi one # # Example: RewriteRule ^(.*)$ dispatch.fcgi [QSA,L] RewriteEngine On # If your Rails application is accessed via an Alias directive, # then you MUST also set the RewriteBase in this htaccess file. # # Example: # Alias /myrailsapp /path/to/myrailsapp/public # RewriteBase /myrailsapp RewriteRule ^$ index.html [QSA] RewriteRule ^([^.]+)$ $1.html [QSA] RewriteCond %{REQUEST_FILENAME} !-f #RewriteRule ^(.*)$ dispatch.cgi [QSA,L] # In case Rails experiences terminal er...
2006 Feb 06
3
rails + apache question
...httpd/applications/foo-1.0.0" I would like the URL to be "http://host.domain.com/foo" I''ve created a "/home/httpd/html/foo" directory. I''ve created a link using "ln -s /home/httpd/applications/foo-1.0.0/public /home/httpd/html/foo" I added "RewriteBase /foo" to the .htaccess file in /home/httpd/applications/foo-1.0.0/public However, when I try to visit http://host.domain.com/foo I get a "cannot find server" error. The apache error log shows this: File does not exist: /home/httpd/html/foo:3000 What am I doing wrong? And how do I...
2009 Jun 17
2
Using a cgi perl program?
...s # By default the cgi dispatcher is used which is very slow # # For better performance replace the dispatcher with the fastcgi one # # Example: # RewriteRule ^(.*)$ dispatch.cgi [QSA,L] RewriteEngine On # If your Rails application is accessed via an Alias directive, # then you MUST also set the RewriteBase in this htaccess file. # # Example: # Alias /myrailsapp /path/to/myrailsapp/public # RewriteBase /myrailsapp RewriteRule ^$ index.html [QSA] RewriteRule ^([^.]+)$ $1.html [QSA] RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ dispatch.cgi [QSA,L] # In case Rails experiences terminal err...
2007 Dec 21
2
config Rails .htaccess
...# By default the cgi dispatcher is used which is very slow # # For better performance replace the dispatcher with the fastcgi one # # Example: # RewriteRule ^(.*)$ dispatch.fcgi [QSA,L] RewriteEngine On # If your Rails application is accessed via an Alias directive, # then you MUST also set the RewriteBase in this htaccess file. # # Example: # Alias /myrailsapp /path/to/myrailsapp/public # RewriteBase /myrailsapp RewriteRule ^$ index.html [QSA] RewriteRule ^([^.]+)$ $1.html [QSA] RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ dispatch.cgi [QSA,L] # In case Rails experiences terminal err...
2006 Apr 12
13
Public Directory not accessible
Been trying to deploy my rails app on Redhat ES3, Apache2, FastCGI with Plesk all day. Fun stuff. Basically, the issue that I can not solve has to do with access to /public. None of my images, javascripts, etc. are working in the app. Trying to access any of these results in a 404 (or routing error if in developer mode). Oddly, the 404 file it displays is -- you guessed it -- in fact *in*
2005 Dec 30
2
scgi apache routes help needed
...would be useful. Many thanks for any and all help. -kelly dwight felkins Here is what I currently have: .htaccess ----------- : # Example: # RewriteRule ^(.*)$ dispatch.fcgi [QSA,L] RewriteEngine On # If your Rails application is accessed via an Alias directive, # then you MUST also set the RewriteBase in this htaccess file. # # Example: # Alias /myapp /var/www/myapp/public # RewriteBase /myapp RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ /myapp/$1 [QSA,L] #RewriteRule ^$ index.html [QSA] : ------------------- httpd.conf ---------------------- Alias /myapp /var/www/myapp/public...
2006 Feb 01
3
Configure Apache 2.0.55 and FastCGI
I''m installing a Rails App under Apache 2.0.55 with FastCGI. I have this config under httpd.conf ------------------------ LoadModule fastcgi_module modules/mod_fastcgi.dll ... Alias /fatturails/ "C:/Programmi/Apache Group/Apache2/htdocs/fatturails/public/" <Directory "C:/Programmi/Apache Group/Apache2/htdocs/fatturails/public"> AddHandler fastcgi-script .fcgi
2006 May 19
5
more fcgi problems
Finally got fcgi installed with apache. Now whe I click on "About your application''s environment" on the Rails Welcome page, it simply prints out the dispatch.fcgi script as shown below. I would appreciate any help I can get on this. I can provide other infomation if necessary. #!/usr/local/bin/ruby # # You may specify the path to the FastCGI crash log (a log of unhandled #
2006 Apr 21
3
Rails on Pair networks
I''ve been looking to play about with Ruby on Rails for a while just to see what the fuss is about and now that I have, it looks very impressive. Unfortunately I can''t seem to get it to run on my shared web server which is run by the hosting company pair networks (www.pair.com). I found the handy guide on the wiki that seemed tailor made for my problems and followed the
2006 Jun 20
1
typo proplem here? what may be wrong?
...OM triggers WHERE (due_at <= ''2006-06-19 22:37:23'') ): now when i ran the scema, the table is populated. I checked if the table exist by logging into mysql with the typo user name + pw. any ideas? ive modified the database.ym and verified the parsing, the .htaccess file to rewritebase on the typo app, i updated the env rails variable, etc... thanks. -- Posted via http://www.ruby-forum.com/.
2008 Jul 21
0
.htaccess exceptions
...# By default the cgi dispatcher is used which is very slow # # For better performance replace the dispatcher with the fastcgi one # # Example: # RewriteRule ^(.*)$ dispatch.fcgi [QSA,L] RewriteEngine On # If your Rails application is accessed via an Alias directive, # then you MUST also set the RewriteBase in this htaccess file. # # Example: # Alias /myrailsapp /path/to/myrailsapp/public # RewriteBase /myrailsapp RewriteRule ^$ index.html [QSA] RewriteRule ^([^.]+)$ $1.html [QSA] RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ dispatch.cgi [QSA,L] RewriteCond %{REQUEST_FILENAME} *.php #...
2006 Jun 17
2
ROR deployment on Apache - DocRoot set to /
I am trying to get a ROR app running on a linux box running Apache 1.3 at my hosting comapny, but cannot get it running. There is a fresh/clean ROR app in the base directory / .htaccess, dispatch.cgi, dispatch.fcgi and dispatch.rb are all in / All dispatch files have been set to 755. ROR docs say to point doc root at /public/ and to put .htaccess, dispatch.cgi, dispatch.fcgi and dispatch.rb
2006 Feb 13
8
Anyone have Ruby for IIS installer?
Erwin: We found it''s not worth the time to do this. It won''t work reliably. You''re in for a world of hurt. We''ve given up on the idea after several months of trying (and some great feedback from this list). There are some on this list who claim to have gotten it to work, but that might just be luck. We''re now using Apache on a higher port, and using
2006 Apr 20
1
How do you run a rail app from a subdirectory?
I''ve looked everywhere and I haven''t been able to find a solution. I''m running Apache and I have an app under version control (svn). I want to be able to have multiple check-outs on one server, and I don''t have to modify httpd.conf every time I do. Basically, I envisioned that it would work like this: There''s a development server:
2006 Mar 17
22
godaddy & rails
Sorry to trouble the list with this question... Do many rails developers run or test rails apps on godaddy hosted servers? Is there any documentation (outside of what godaddy provides) about uploading and testing rails apps there? Perhaps someone has written a tutorial? I googled, but found little to no info about it other than the sparse godaddy docs. Thanks!