Displaying 20 results from an estimated 1000 matches similar to: "Using a cgi perl program?"
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}
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
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
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 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---------------------------
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
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.
2006 Aug 13
3
Rewrite problem or routing issue?
I''m not able to access anything in public, everything seems to be going
through the rails router. As a result, I can''t get to stylesheets or
javascript.
I''m not quite clear if this is a .htaccess problem, or a router problem.
I eliminated the "catchall" route, so the last route is
map.connect '':controller/:action/:id''
My .htaccess file
2006 Aug 13
1
Rewrite problem?
I''m not able to access anything in public, everything seems to be going
through the rails router. As a result, I can''t get to stylesheets or
javascript.
I''m not quite clear if this is a .htaccess problem, or a router problem.
I eliminated the "catchall" route, so the last route is
map.connect '':controller/:action/:id''
My .htaccess file
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
2007 Dec 21
2
config Rails .htaccess
Hello, newbie here please help
I have developed my Rails site under www.mydomain.com/home
Now I want to map it to use www.mydomain.com, what should i change to
this .htaccess file
=============== Content of my .htaccess file under public directory
============
# General Apache options
AddHandler fastcgi-script .fcgi
AddHandler cgi-script .cgi
Options +FollowSymLinks +ExecCGI
# If you
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 Jul 17
3
.htaccess problems..... Using Drupal
Hi All;
I am trying out the web software from www.drupal.org and I have it
Installed to a point ok in my www.werren.net domains.
Every time I try to use the .htaccess file in the root directory
With even one command showing I get a server mis-config error on the site.
The default .htaccess is shown below
I use Cent OS 4.7 using the Blue Quartz installer from Nuonce Networks
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
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
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 Nov 13
1
Service Temporarily Unavailable when using apache
hey all,
I''m trying to do a mongrel_cluster+apache2 config.
this is my testapp.conf:
<VirtualHost *:80>
Include /etc/apache2/conf.d/testapp.common
# ErrorLog logs/testapp_errors_log
# CustomLog logs/testapp_log combined
</VirtualHost>
this is my testapp.common:
ServerName myapp.com
DocumentRoot /home/patcito/testapp/public/
<Directory
2006 Dec 11
2
Does mongrel look at the Rails page cache?
Hi all. I''m trying to skip the Rails page cache if the user is logged
in:
---
# Rewrite index to check for static
RewriteCond %{HTTP_COOKIE} !^.*logged_in=yes.*$
RewriteRule ^/$ /index.html [QSA]
# Rewrite to check for Rails cached page
RewriteCond %{HTTP_COOKIE} !^.*logged_in=yes.*$
RewriteRule ^([^.]+)$ $1.html [QSA]
# Redirect all non-static requests to cluster
RewriteCond
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