Displaying 20 results from an estimated 900 matches similar to: "Redirect www to non-www"
2007 Oct 16
1
redirects with mongrel (dropping the www. from a url)
Hi All,
I have a rails app running on an apache virtual host with mongrel that
i want to set up a redirect from www.someapp.com to someapp.com
(dropping
the www.)
I have tried doing this in apache using a rewrite rule (below) which
worked before when the app was written in php.
Redirect http://www.soccertackle.com/ http://soccertackle.com
RewriteEngine on
RewriteCond %{HTTP_HOST}
2006 May 26
1
RewriteRule to strip www. ?
I''m trying to add a RewriteRule to my .htaccess to remove the www.
prefix from requests. The following works on its own:
RewriteCond %{HTTP_HOST} www.mysite.com
RewriteRule (.*) http://mysite.com/$1
But it blows up when I try to add it to my .htaccess file. I''ve tried
moving it around, before and after the various Rails-specific rules, but
I can''t get it to work.
2009 Jun 17
2
Using a cgi perl program?
I have a cgi/perl program that I want to use on the same server as my
RoR app and I keep getting:
The page you were looking for doesn''t exist.
You may have mistyped the address or the page may have moved.
I load the program to the cgi-bin directory in its own folder /cgi-bin/
fump/
In the /public folder of my app I have the following .htaccess file:
# General Apache options
2005 Mar 24
5
Bloomberg data import
Dear R Folks,
I know that Enrique Bengoechea ( Credit Suisse ) had posted some code
snippets for importing Bloomberg historical data into R.
I found them to be very useful.
Has anyone succeeded in getting the below items
from Bloomberg to R?
(a) historical economic release data,
(b) tick/intra-day data
(c) bulk data such as Index membership info, etc.
If someone is willing to share their code
2008 Jan 28
2
sub-plot in a plot
From: lamac_k em hotmail.comTo: r-help-request em r-project.orgSubject: sub-plot in a plotDate: Mon, 28 Jan 2008 15:43:40 +0000
Dear all, how can I do these sub-plots in a plot (see file attached) in R. Best regards.
Receba GR?TIS as mensagens do Messenger no seu celular quando voc? estiver offline. Conhe?a o MSN Mobile! Crie j? o seu!
2017 Nov 13
2
Strrange behavior of VirtualHosts in Apache (CentOS6)
Hello,
there is a short explanation about virtual hosts in Apache ...
https://wiki.centos.org/TipsAndTricks/ApacheVhostDefault
the `hostname` gives a different donmain name than what should be hosted ...
e.g. `hostname` is host.example.org and the domain to be hosted is
example.com, so I did this:
<VirtualHost 1.2.3.4:80>
ServerName host.example.org
DocumentRoot /var/www/default
2006 Feb 20
2
DNS Setting
Hello People,
In my DNS setting I added A record of www for our company website.
It works, when you go to http://www.mycompany.com; it resolves and it
shows the website content.
But in addition, I want also some kind of redirection or mapping (i
don't know what you called that) that when people go to
http://mycompany.com (without www), it should forward also to the www
server.
How to do
2009 Feb 13
1
linksys PAP2t and asterisk
Hi all:
when i make a call from linksys pap2t to an asterisk server a fake ring is heard some times ,but when sending calls between 2 asterisk servers through sip no fake ring is heard but real one.
any suggestions please.
_________________________________________________________________
Windows Live?: E-mail. Chat. Share. Get more ways to connect.
2016 Jul 27
2
Proxy
Hi all,
I want to do a proxy to icecast (:8000) with nginx (:80).
Its working for me, stream is running on port 80, but on the first loading
is "pending" For a long time before its starts play.
Who using the "proxy_pass" on nginx and can help?
Thnx.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2009 Jul 23
2
apache redirect rule
Hello guys,
sorry for this OT, but It seems that I am a very stupid :(.
I want to achieve one simple think in apache 2.2.
If users will type extensions.polarion.com I want to redirect him to
extensions.polarion.com/polarion/extensions However there are
following rules that apply
1) extensions.polarion.com is an virtual host alias to
community.polarion.com . There is a definition inside virtual
2009 Dec 16
5
Caching comments: timestamps and subdomains
Hi,
I''m working on a website that has a very slow loading frontpage. I
wanted to start by caching certain elements that have high load. For
example, it loads the last 50 comments, along with the corresponding
usernames, avatars and more. So I cached that fragment and created a
sweeper that observes Comment and expires after every create or
destroy action.
However, I have two problems:
2007 Aug 06
1
File locking issue
I have a client with an older server that is running into a weird file
locking problem.
The server is running FC2, samba 3.0.7 and kernel 2.6.10.
They have recently installed AutoDesk Revit, which is apparently some
sort of collaborative design software. Revit keeps a central repository
and then allows different clients to access it.
What is happening is that only the person who created the
2006 Jul 10
4
Test Mongrel 0.3.13.4 Please
Hey Folks,
There''s a nasty little bug in 0.3.13.3 when running in development mode
which could cause all sorts of problems.
Please grab the pre-release of 0.3.13.4 and tell me if it works for you:
gem install mongrel --source=http://mongrel.rubyforge.org/releases/
Thanks!
--
Zed A. Shaw
http://www.zedshaw.com/
http://mongrel.rubyforge.org/
http://www.railsmachine.com/ -- Need
2007 Nov 14
2
Exception Notification plugin options hash handling????? backwards merge?
Today I worked on adding email exception notification to some
ancillary background processes for a Rails app.
Since I was already using Jamis'' exception notification plugin to
notify me of errors in controllers for the web app, I figured that the
path of least resistance was to try to figure out how to hook it into
the daemon code.
At first it looked easy. I just needed to
2005 Dec 30
6
Unable to get the domain in my routes.rb to map custom route tables per domain
I have tried all night trying to find a way to get the host name which is
currently being used within my routes.rb file to do some case/when switching
for specific domains such as this
cgi = ActionController::CgiRequest.new(CGI.new)
case cgi.domain(1)
when /www/
map.connect '''', :controller => ''public'', :action =>
''index''
when
2012 Feb 10
2
My Host
I need to get some absolute redirects working -- basically I set callback
hooks to external services, but I want these hooks to use my configured
CNAME''s. I''m trying to find a way so that my app doesn''t have to know
about these CNAME''s. So I''m looking at the request in the controller to
try and get the base URL where I''m running.
To
2009 Jun 22
1
Action caching with multiple domains
I have recently setup some action caching in my Rails app and everything
seems to be working fine. I am using file store pointing at /tmp/cache. The
problem I am running into is that separate cache directories are being
created for different domain names that point at the same server. For
example mysite.com and www.mysite.com will have different cache directories.
It seems like it should be easy
2010 Jan 09
5
Redirect 301 and cache
I want my rails app to redirect from no-WWW to WWW domain (for example
if I enter example.com/test to redirect to www.example.com/test). I
put the following code in the application controller and worked fine:
before_filter :check_uri
def check_uri
if !/^www/.match(request.host)
redirect_to request.protocol + "www." + request.host_with_port +
request.request_uri, :status => 301
2007 Sep 25
16
putting away HashWithIndifferentAccess
Hey, campineros. And many good handshakes to zimbatm for getting
some patches applied.
So, yeah, I''d really like to get rid of any serious dependancies with
this 1.6 release. Anything that''s not in stdlib has to go. Of course,
camping-omnibus will still assume the whole ActiveRecord, Markaby,
Mongrel setup that''s in the history books.
Metaid can be removed and
2008 Jul 21
4
[LLVMdev] nightly tester setup
I've noticed that my nightly tester doesn't seem to be reporting the
results of running llvm-test, only build warnings and make check.
Checking with -verbose shows that it's running the test suite, so I
don't quite understand what's going on. Looking at
http://llvm.org/nightlytest/ shows that none of the other Linux testers
are reporting test suite results either.