similar to: redirects with mongrel (dropping the www. from a url)

Displaying 20 results from an estimated 1000 matches similar to: "redirects with mongrel (dropping the www. from a url)"

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
2010 Jan 21
4
Redirect www to non-www
How to redirect www to non-www? e.g redirect www.example.com to example.com Thanks Johnny -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to
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 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
2016 Mar 31
2
rsync with overlay tree
> On 31 Mar 2016, at 16:22, Marian Marinov <mm at yuhu.biz> wrote: > > On 03/31/2016 07:40 AM, tomr wrote: >> I maintain a directory structure containing dirs and files that I regularly push to ~50 hosts, which are divided into 3 groups that have slightly different needs (minor mods in a couple of files). >> >> So ideally I would have 4 directories: >>
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
2008 May 09
2
Apache Redirects...
I'm trying to require SSL for drupal login and admin pages and it seems that this should work but it doesn't redirect if added to httpd.conf or to .htaccess (I've tried both) RewriteCond %{REQUEST_URI} ^/(user|admin) RewriteRule ^(.*)$ https://%{SERVER_NAME}/$1 [L,R] Shouldn't this be enough so that the URL...(googling suggests that it is) http://cms.tobyhouse.com/user/login
2017 Mar 14
2
httpd/sites-available directory
The goal is to have access to a specific virtual host on port 80, to be routed to port 443. Any other port 80 access is left as is. So let us assume a server foo.bar.com and the specific virtual host is webmail.bar.com So I have tried: <VirtualHost *:80> ServerName webmail.bar.com ServerAlias webmail RewriteEngine On ReWriteCond %{HTTP_HOST}
2006 Dec 16
5
trying to add another app
hey all, I have an app working great with apache2 and mongrel_cluster. However, I''m trying to run another application and now when I go to app1.comit falls to app2.com and the opposite. That''s probably because I messed up somewhere with the cluster. this is the content of my conf.d/app1.proxy_cluster.conf: <Proxy balancer://mongrel_cluster> BalancerMember
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
2006 May 17
1
Apache config: Two different rails apps using same domain name (mod_rewrite issue)
The problem I''m solving here is that I have two different Rails applicatons that uses the same domain name. One handles the www (e.g. www.mycoolapp.com) and is used as the main site, and the other handles the user subdomains (e.g.. someuser.mycoolapp.com). The DNS stuff and the Apache virtual hosts were all set up, the two rails apps are in place in the file system, and the proper
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
2006 Sep 07
8
what should be correct .conf file for being served by apache for static content
Recently while i turned on USR1 debugging...mongrel running behind Apache2.2threw following debugging messages: Thu Sep 07 15:58:30 IST 2006: 0 threads sync_waiting for /charts/%5EBSESN, 1 still active in mongrel. Thu Sep 07 15:58:40 IST 2006: 0 threads sync_waiting for /images/tab_but_normal1.png, 3 still active in mongrel. Thu Sep 07 15:58:40 IST 2006: 0 threads sync_waiting for
2007 Sep 08
8
SVN and Rails problem
Hi guys, I''ve finally managed to get my server up and running with mongrel_cluster and all that jazz. My rails app works fine, but when I try to access my svn repos as I was doing before everything was setup rail is giving me a 404. What can I add to my httpd.conf to prevent this? Here''s a snip from my httpd.conf relating to the domain: ---HTTPD.CONF---------------------------
2006 Feb 22
5
[OT] Apache rewrite stuff...
Hi all, a little off topic, but was wondering what the best way is to re-write incoming requests so that they all end up at the same domain. For example, if I had: my_domain.net my_domain.com my_domain.org Whats the best way to map/redirect all of these to www.my_domain.com ? I know its possible, just not sure what to add for rules/virtual hosts in my apache config. Thanks for the help! -Nick
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
2017 Mar 14
2
httpd/sites-available directory
I just received some advice from a colleague of a colleague over at openssl.org. But they use debian. Please look at this and help me out on how Centos7 handles this: Note the comment of the location of virtualhost config files. Centos7 does not have a "man a2ensite". thanks Rewriterules and https. Actually, looking at what you have doesn't really tell me why it gets applied
2010 May 19
4
apache redirection
Hello everyone, Part of our website has secured access with an SSL certificate. The problem we are running into is that the certificate is for www.domainname.com, so when they go to domainname.com (without the www. in front), the users are getting a "This connection is untrusted" warning, because the url doesn't match the certificate. I found one site that said to make a change to
2005 May 13
0
Apache config for Squirrelmail?
This is my corrected configuration file for squirrelmail over ssl if anyone is interested: # squirrelmail.conf 2005 May 13 James B. Byrne JBB8 # # SquirrelMail is a webmail package written in PHP. # This configuration file forces users to connect via SSL # # If the incoming request is already https:// then this # file will only be processed if the directive: # # Include
2009 Sep 15
6
Running an app that require specific NT groups
Hello guys, I need to run an application that requires the user to be in a specific group (let's say "SomeApp Admin"). I couldn't find any documentation about this, either here or on the wiki (although I sometimes suck at searching - slap me if I did), so I took a look at the server/token.c code. At first glance it seems like the groups are hardcoded in there, but I might have