similar to: Re: URL issues

Displaying 20 results from an estimated 10000 matches similar to: "Re: URL issues"

2006 Sep 17
1
Serving rails application from server root
How can I set up my rails application to be served from the root of my server. Currently I have to enter http://www.mysite.com/site to load the application. It would like it to load from http://www.mysite.com/. My rails application is in a directory named "myapp" and the server serves files from "public_html" Thanks in advance. Matt -- Posted via
2012 Dec 12
2
How to get ruby running on a webserver
Hi, I have purchased a VPS that has WHM cpanel. I have logged into the root of my system using putty and installed ruby 1.9.3 via rvm and rails 3.2.9. I have created a website in cpanel that has created a public_html directory that is live and working on the web. I then created a simple ruby website called blog in the public_html directory. My question is how do I get the ruby application to run
2006 May 30
1
Url encoding Help Pls!
Hi guys, it''s me again, I want to come up with the following url: www.mysite.com/webpage?myid=1 I keep coming up with the following url: www.mysite.com/webpage%3Fmyid%3D1 require ''uri'' $myurl = URI.escape("webpage?myid=") redirect_to(:action => $myurl + 1 ) what am I doing wrong? I also tried require ''cgi'' $myurl =
2013 May 15
1
staging deploy connected to production database
I''m not sure why but I have both a staging and production deploy using the ''capistrano/ext/multistage'' gem. I set staging to the default: set :stages, ["staging", "production"] set :default_stage, "staging" It deploys correctly to the right path: #deploy/staging.rb set :deploy_to, "/home/myuser/public_html/mysite/" But it
2006 Jan 27
1
Execute script tag loaded from Ajax.Updater call
Hello everyone, I have an ad serving application that give me a chunk of javascript to put in each page an when then page it loaded, that javascript executes and it load a banner ad. Basically, I''m returned this from the server: <script language="JavaScript1.1" type="text/javascript" src="http://mysite.com/execute/this_javascript.js"> </script>
2006 Sep 06
1
31K failed stat64's when viewing a simple (no db) rhtml page?
I''m trying to help the sys admins of my server figure out what is up with our Rails installation (debian sarge - completely up to date). Hitting a simple page yields 31,000 failed stat64''s and takes anywhere from 8 - 44 seconds. They #! for ruby is correct everywhere, but it''s like it can''t find Rails. These are box stock standard installs. Here''s
2006 Dec 29
9
Error : No protocol handler was valid for the URL...
Hi everybody, I just suscribe to the list because I have a problem using mongrel and mongrel_cluster... I setup a server (debian unstable wich provide apache 2.2.3 as a pakage) but I have an error when I try to access my application : ERROR 403 : Forbidden, You don''t have permission to access / on this server. When I check apache''s logs I found that : [warn] proxy: No
2007 Aug 13
1
Extract part of vector
Dear R-users, How do I extract numbers between asp?P= and &VID from my txt vector? I have tried grep function with no luck. txt <- c(" http://www.mysite.com/system/empty.asp?P=2&VID=default&SID=421384237289476&S=1&C=18631", " http://www.mysite.com/system/empty.asp?P=123&VID=default&SID=421384237289476&S=1&C=18643", "
2006 Jan 29
2
GetText and rjs templates?
hi, is it possible that gettext don''t work with rjs templates? i''ve just tried this simple example blog_controller.rb : class BlogController < ApplicationController def index end def dosomething end end index.rhtml : <html> <head> <%= javascript_include_tag :defaults %> </head> <body> <div id="test">Some text to change
2009 Sep 30
3
How to search and replace all urls on a HTML string using RUBY gsub
Hi , I trying to search and replace all urls on a HTML string using gsub . CODE html = "<a href=''http://site.com.br''><img src=''http://site3.com/ image.jpg''></a><a href=''http://newx.com.br''><img src=''http://localhost/ imagem.jpg''></a>"; pattern = /<a
2006 Jan 11
15
How to use custom url formats?
I''m new to Rails and am trying to use a field called "code" instead of "id" in my URLs. For example, assuming I''ve got a database of motorcycles makes where the codes are "Honda", "Yamaha", "Suzuki", and "Kawasaki", etc. To show the info about Honda I want to use this url: http://www.mysite.com/makes/honda/
2007 Nov 27
1
routing
Hi all, My site uses subdomains to define an item. Eg http://itemname.mysite.com I fetch the itemname and render the appropriate site from that itemname. The subdomain is used everywhere (eg http://itemname.mysite.com/events, http://itemname.mysite.com/products/show/11, ...) I now want to give the user the possibilty to use a ''real'' domain like www.itemname.com that should
2008 Jan 18
1
Strange locking behaviour upsets Apache
We have a server which runs Samba and Apache. Web developers edit their files (via Windows mapped drives) from Windows XP SP2. These files are typically CGI files and the developers' routine is: while (web page not quite right) { 1. Edit file 2. Save 3. Click Reload on web browser 4. Check results } They go around that loop many times during a typical development run.
2008 Dec 04
1
Comparing survival curves with "survdiff" "strata" help
ExpeRts, I'm trying to compare three survival curves using the function "survdiff" in the survival package. Following is my code and corresponding error message. > survdiff(Surv(st_months, status) ~ strata(BOR), data=mydata) Error in survdiff(Surv(st_months, status) ~ strata(BOR), data = mydata) : No groups to test When I check the "strata" of the variable. I get .
2008 Jan 23
7
Apache, Mongrel, Authentication
A question about mongrel, apache and authentication. I''ve got a Rails site with I think a very typical setup: a mongrel cluster behind an Apache proxy. So Apache''s handling the static stuff and it hands off dynamic content to mongrel. I want to put the site temporarily behind Apache''s basic authentication. What I get when I do this is that is a password prompt which
2005 Nov 22
4
multiple rails apps on one lighttpd
Good evening (or afternoon or whatever it is where you are), Before I start setting it all up, I have a question about lighttpd and multiple rails apps. From what I have read, it is at the minute only possible to do multiple rails apps using subdomains: typo.mysite.com hieraki.mysite.com rforum.mysite.com etc, etc and not currently possible to do this: mysite.com/typo mysite.com/rforums
2007 Jul 02
6
Basic auth bug in 0.6.9
I haven''t spent the time to get a proper test case for this yet, but there appears to be a bug in the basic_auth code for mechanize 0.6.9. I''ve attached a CSV (from Charles) that illustrates the problem. Basically when running with basic_auth, there''s a failed request that''s followed up by a successful request. That last POST is a agent.submit(form)
2009 Jun 10
5
Deploying with Passenger question
Hi, I followed the instructions for deploying a site with Passenger from the screencast that is on the Phusion Passenger site and it didn''t work. I am using Dreamhost to host my site- could the problem be on their end? Someone suggested that I do: passenger-install-apache2-module on my command line but I already did that when I first installed Passenger and the Passenger Pref pane
2013 Feb 22
1
Variables within Manifests question
Hello all Can someone please help me or answer if this is possible I''m using the puppet forge IIS module, and want to use variables within the syntax dependent up ip address for example: colo_a = 1.1.1.0 colo_b = 2.2.2.0 if $network_local_area_connection = 1.1.1.0 add colo_a elseif $network_local_area_connection = 2.2.2.0 add colo_b iis_site {''mysite.co.uk'':
2006 Apr 03
8
Layout problem
Hi, I am creating a blog to learn ruby on rails. The blog.rhtml in the layout folder has a the following code <td width=150 valign="top">This is the left menu</td> <td width=600 valign="top"><%= @content_for_layout %></td> <td width=150 valign ="top"><%= render :partial => "categorylist", :collection =>