How to access second web location w/o using port numbert and DNS server on LAN?

Discussion in 'Apache' started by cje1, Mar 12, 2009.

  1. #1
    I have 2 web folders;
    1. default; for some web pages: /var/www
    2. "second"; for some other web pages: /var/www2

    I would like to access www2 from LAN w/o using DNS and port number.

    How do I configure apache2 to make this possible?
    Thanks for any suggestions
     
    cje1, Mar 12, 2009 IP
  2. bsd13

    bsd13 Peon

    Messages:
    168
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    bsd13, Mar 13, 2009 IP
  3. cje1

    cje1 Peon

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks for your info.
    My default interface (eth0) is .10.20
    I've made some new interfaces eth0:0 (.10.30), eth0:1 (.10.31), eth0:n (.10.n) ....

    Enabled vhost for each ip (sites-enabled).
    So, now it works on LAN.

    But, as my firewall points port 80 to default eth0 .10.20 I doesn't reach the new interfaces from WAN..... do you know how to solve that problem?

    Thanks for any suggestions
     
    cje1, Mar 14, 2009 IP
  4. bsd13

    bsd13 Peon

    Messages:
    168
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I think throwing in a second nic and making one of them internal and one external is going to be the best (fastest, easiest) solution.
     
    bsd13, Mar 14, 2009 IP
  5. cje1

    cje1 Peon

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    An extra nic was not what I was looking for - anyway, thanks for your sugestion.
     
    cje1, Mar 15, 2009 IP