Home Forums OS X Server and Client Discussion Web setting up an intranet web site

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #361155
    b_caceres
    Participant

    Our goal is to set up an intranet web site visible only to internal employees — kb.domain.com.

    Half our company is completely segregated from the Internet and from the other half of the company but for email and a files server (no AFP, no Rendezvous, no contact period). The other customer-oriented half has full access to the Web. Both sides need to see the same site. We already have an external-facing web site we don’t want to interfere with. Its port (8080) points to a different machine.

    Our router directs port 80 to the Xserver’s IP, and the intranet site is set to port 80. Folks on both sides of the wall can see kb.domain.com.

    So can the rest of the world. Oops! Anyone who puts kb.domain.com into their browser sees the site.

    I’m very frustrated that I’m not able to figure out a way to arrange these three groups properly. We want internal personnel with access to the Net and internal personnel with no access to be able to see the site; we want to block access to everyone else. Yet the router seems not able to distinguish between “inside” and “outside.”

    Any hints?

    #361180
    heavyboots
    Participant

    I haven’t messed with the web settings in the Server Admin, but in straight “apache-ese”, it’s just something like this–I use the example below to point everyone not coming from localhost to an under construction page while I’m twiddling with the php code:

    RewriteEngine On
    RewriteCond %{HTTP_HOST} !^localhost$
    RewriteRule ^(.*)\.(php)$ http://yourserver.com/underconstruction.html

    See apache docs on mod_rewrite for more details.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

Comments are closed