Code Monkey home page Code Monkey logo

Comments (12)

FooBarWidget avatar FooBarWidget commented on May 23, 2024

From honglilai on May 01, 2008 09:52:48

There's not much we can do about that. You should disable mod_rewrite for Passenger
virtual hosts.

from passenger.

FooBarWidget avatar FooBarWidget commented on May 23, 2024

From fannar on May 01, 2008 11:48:02

How do you then suggest rewriting www.domain.com to domain.com ? Won't that be possible using mod_rails ?

from passenger.

FooBarWidget avatar FooBarWidget commented on May 23, 2024

From honglilai on May 01, 2008 12:00:32

You could setup www.domain.com as a separate virtual host. www.domain.com would send
a HTTP redirect to the same URI under domain.com. This also happens to be better for
your visitors and for Google, because now everybody will be forced to visit
domain.com, i.e. you don't have to worry about some sites linking to domain.com and
others to www.domain.com.

from passenger.

FooBarWidget avatar FooBarWidget commented on May 23, 2024

From fannar on May 01, 2008 12:16:45

Well. Doesn't seem to be the perfect solution. Should work. More lines of code.

I have been using mod_rewrite to do the 301 redirect.

What is strange about my problem is that the first time I installed Passenger with mod_rewrite enabled,
everything worked fined. But then I restarted the computer and the rails app didn't start. So I had to disable the
mod_rewrite module. Disabled Mod_rewrite for the virtual host wasn't enough. So I can't use mod_rewrite for
other virtual hosts.

from passenger.

FooBarWidget avatar FooBarWidget commented on May 23, 2024

From honglilai on May 01, 2008 12:21:48

Strange, what version of Passenger are you using?

from passenger.

FooBarWidget avatar FooBarWidget commented on May 23, 2024

From fannar on May 01, 2008 12:23:43

I'm using version 1.0.3

from passenger.

FooBarWidget avatar FooBarWidget commented on May 23, 2024

From honglilai on May 01, 2008 12:27:46

Did 1.0.1 work for you?

from passenger.

FooBarWidget avatar FooBarWidget commented on May 23, 2024

From fannar on May 01, 2008 13:27:40

Well this is my first install. Didn't try out the other versions. Maybe I will try that out if I give me some time soon.

from passenger.

FooBarWidget avatar FooBarWidget commented on May 23, 2024

From honglilai on May 08, 2008 01:23:03

Is anyone else experiencing this problem?

Labels: NeedsConfirmation

from passenger.

FooBarWidget avatar FooBarWidget commented on May 23, 2024

From fannar on May 08, 2008 03:06:54

Great am I the only one ? :D

from passenger.

FooBarWidget avatar FooBarWidget commented on May 23, 2024

From nateklaiber on December 04, 2008 13:16:46

I have the same issues. While I could redirect within the rails app, I will have caching enabled so I don't want to
rely on the app - I want this done at the server level.

from passenger.

FooBarWidget avatar FooBarWidget commented on May 23, 2024

From honglilai on February 21, 2009 05:44:11

2.1.0 should fix all mod_rewrite issues.

Status: Fixed
Labels: -NeedsConfirmation Milestone-2.1.0

from passenger.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.