3

I just wonder if it's possible to define several DocumentRoots for single VirtualHost in httpd.conf and serve them out depending on IP of the visitor?

1 Answer 1

2

Yes. See mod_rewrite including our very own Everything You Ever Wanted to Know about Mod_Rewrite Rules but Were Afraid to Ask?

3
  • Actually I wondered if it's possible to place conditional directly into the VirtualHost definition.
    – jayarjo
    Apr 19, 2011 at 7:04
  • @Jayarjo, not that I'm aware of, no.
    – Chris S
    Apr 19, 2011 at 12:29
  • 6 years later, does apache-2.4 make it possible with the If clause now?
    – lkraav
    Feb 14, 2017 at 10:34

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .