Find the answer to your Linux question:
Results 1 to 3 of 3
Dear All, I am having a web server (apache) hosted with 3 web sites, named as www.web1.com , www.web2.com and www.web3.com . I need to restrict access www.web2.com to internet ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Oct 2006
    Posts
    18

    block particular web site form multiple site hosted web server and allow others


    Dear All,

    I am having a web server (apache) hosted with 3 web sites, named as www.web1.com, www.web2.com and www.web3.com.

    I need to restrict access www.web2.com to internet users and allow to LAN users.

    At same time I need to allow www.web1.com and www.web3.com to both internet and LAN users.

    more clearly
    www.web1.com allow internet and LAN users
    www.web2.com allow LAN and Block internet users
    www.web3.com allow internet and LAN users


    How can I do this.

    (iptables rules, apache configuration or any other method?)


    Thanks and rgds,

  2. #2
    Just Joined!
    Join Date
    Jul 2010
    Posts
    53
    if you have different network adapters - can make www.web2.com active only on the LAN interface in your virtual host configuration - something like:

    NameVirtualHost lan-addr:80

    <VirtualHost lan-addr:80>
    ServerName www.web2.com
    </VirtualHost>

  3. #3
    Just Joined!
    Join Date
    Jul 2010
    Posts
    53
    if you have different network adapters - can make www.web2.com active only on the LAN interface in your virtual host configuration - something like:

    Code:
    NameVirtualHost lan-addr:80
    
    <VirtualHost lan-addr:80>
        ServerName www.web2.com
    </VirtualHost>

  4. $spacer_open
    $spacer_close

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •