php is saving!!!? Don't execute!

Discussion in 'Installation/Configuration' started by high_moon, Jan 19, 2007.

  1. till

    till Super Moderator Staff Member ISPConfig Developer

    ISPConfig uses name based vhosts. You can not access a ISPConfig website by IP, you must use the domain name.
     
  2. orasis

    orasis Member

    I am very sorry if I make you tired, but how will this happen when I get the "Server not found" page ? what am I missing ?
     
  3. martinfst

    martinfst Member Moderator

    On your local PC, edit the /etc/hosts file (on windows, it's somewhere else, could be c:\i386\hosts or more likely c:\windows\system32\drivers\etc\hosts) and add the local IP and local system name as you called it in ISPConfig.

    Ope3n your local PC browser and type the vhost name, which is resolved via the local hosts file.
    The other alternative is to run a local DNS server, but that way more complicated to setup for only testing purposes.
     
  4. orasis

    orasis Member

    yes I've already edited the hosts files on both machines but that is the same as calling the IP of the machine isn't it, it once again returns the Shared IP page.

    I am not testing this on lan just to play with it the truth is. Do you get where I am stuck ? anything to do with the dns settings inside ISPconfig ?
     
  5. orasis

    orasis Member

    oh no no no no it worked now...

    I was totally mistaken about the hosts files. I always thought they work as only calling the actual computer's IP.

    anyway it worked :) wow.

    thank you very very much, my head is still spinning :) but i am glad now
    I appreciate your help very much
     
  6. martinfst

    martinfst Member Moderator

    Glad it works. IP based and name based virtual hosts require a different mindset. :)
    With accessing a site based on it's IP, you can have only one (1) site. For ISPConfig this is the shared host directory.
    With name based, you can have many names pointing to the same IP. Apache is clever enough to know which name you use to connect, so it will redirect the requests to the appropriate section of the configuration.
     
  7. orasis

    orasis Member

    well yes and this is amazing of ISPconfig. I used to work with many domain names inside hosts files on workstations befire ISPconfig, so my sites work inside and outside at the same time. I did try it on ISPconfig but only using the same domain name as the computers one... so the was no way I could get out of the shared ip screen. And also I thought that the trick with the hosts files, only works as a shortcut to the ips. now i learned it does more. :)
     
  8. orasis

    orasis Member

    I will just add something more ... except the amazing software + setup, you guys are real good in general.
     
  9. cezarn

    cezarn New Member

    For me worked just fine

    I also use openSuSe10.2 , had the same problem and i solved it by changing this setting. You have to restart your isp config server:

    /etc/init.d/ispconfig_server restart

    ant the apache server:

    /etc/init.d/apache2 restart
    after you change that setting
     

Share This Page