+ Post New Thread
Results 1 to 8 of 8
*nix Thread, Add a second site in apache? in Technical; Hi All, I'm in the middle of trying to install GLPI on a linux box that I have with a ...
  1. #1
    reggiep's Avatar
    Join Date
    Apr 2008
    Location
    In the vast area of space and time
    Posts
    1,188
    Thank Post
    326
    Thanked 42 Times in 40 Posts
    Rep Power
    21

    Add a second site in apache?

    Hi All,
    I'm in the middle of trying to install GLPI on a linux box that I have with a website already running on it. Could someone tell me what i need to do to add my second site to the box? I guess I have to edit my hosts file but not sure how!

    I have dropped all the files into /var/www/hardware but when I browse to http://ipadress/hardware nothing happens.

    Why am I being a doofus here?

  2. IDG Tech News

  3. #2


    Join Date
    Feb 2007
    Location
    Northamptonshire
    Posts
    4,431
    Thank Post
    327
    Thanked 726 Times in 654 Posts
    Rep Power
    201
    Hi reggiep,

    Two ways of looking at this; you should be able to use it as you're doing via http://ip/hardware (assuming it's extracted there and not /var/www/hardware/blah) as long as the defaultroot is set to /var/www.

    Or you can look at vhosts which make it a bit tidier as you can use a sub/domain eg helpdesk.yourdomain.com and vle.yourdomain.com both pointing to completely different places.

  4. Thanks to kmount from:

    reggiep (5th November 2009)

  5. #3
    reggiep's Avatar
    Join Date
    Apr 2008
    Location
    In the vast area of space and time
    Posts
    1,188
    Thank Post
    326
    Thanked 42 Times in 40 Posts
    Rep Power
    21
    I think that is where my problem is. My default website is set /var/www/mahara so not sure how to work round that!

  6. #4


    Join Date
    Feb 2007
    Location
    Northamptonshire
    Posts
    4,431
    Thank Post
    327
    Thanked 726 Times in 654 Posts
    Rep Power
    201
    Ah, yeah, in that case either move hardware under mahara, or we can look at vhosting if I get you some examples?

  7. #5
    reggiep's Avatar
    Join Date
    Apr 2008
    Location
    In the vast area of space and time
    Posts
    1,188
    Thank Post
    326
    Thanked 42 Times in 40 Posts
    Rep Power
    21
    I'll go for the easy fix and drop it into mahara!

  8. #6


    Join Date
    Feb 2007
    Location
    Northamptonshire
    Posts
    4,431
    Thank Post
    327
    Thanked 726 Times in 654 Posts
    Rep Power
    201
    Cool, have fun.

    If you do want to look at vhosts another time just drop me a line.

  9. #7

    RabbieBurns's Avatar
    Join Date
    Apr 2008
    Location
    Sydney
    Posts
    4,747
    Blog Entries
    6
    Thank Post
    1,015
    Thanked 427 Times in 272 Posts
    Rep Power
    141
    vhosts in apache is pretty straight forward.. in fact its now my default method of using apache..

    and webalizer sorts the logs/stats out perfectly for each vhost

  10. #8
    pod
    pod is offline

    Join Date
    Feb 2009
    Location
    Belfast
    Posts
    40
    Thank Post
    21
    Thanked 1 Time in 1 Post
    Rep Power
    0
    Apache2 does make using vhosts really easy.

    Coupled with dyndns you can have up to five free domain names pointing at the same server, the key is using the ServerName directive. They will be dopey domain names like shacknet.nu but they're free.

    I have a fixed ip address at home with bethere.co.uk broadband and use vhosts to run several test sites for my live sites running of an old box...it's good stuff.

SHARE:
+ Post New Thread

Similar Threads

  1. Please add your site
    By Ric_ in forum EduGeek Joomla 1.0 Package
    Replies: 28
    Last Post: 14th May 2008, 08:17 PM
  2. Apache realms...again
    By HodgeHi in forum Mac
    Replies: 1
    Last Post: 28th January 2008, 05:16 PM
  3. Forwarding apache hosted site though IIS
    By Lee_K_81 in forum Networks
    Replies: 7
    Last Post: 29th November 2007, 10:30 AM
  4. Anon Proxt Site - Add to your list
    By ICTNUT in forum Windows
    Replies: 0
    Last Post: 20th April 2007, 01:17 PM
  5. Apache on windows
    By apeo in forum Windows
    Replies: 16
    Last Post: 28th March 2007, 01:09 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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