How to access isispConfig3 websites created without domain names

Discussion in 'Installation/Configuration' started by kmchen, Jan 3, 2012.

  1. kmchen

    kmchen New Member

    Hi,
    I'm a total newbie with ispConfig that I got installed on an ovh dedicated server.
    I bought the doc.pdf where it is said that I should be able to access freshly created websites but at whitch url ?
    When I try http://ip_or_name_server/testsite.com/web/ I get 403 error with "client denied by server configuration: /var/www/testsite.com/web/index.html" in apache logs

    I need that feature to test websites before real domain name transfers.

    Thanks for your help
     
  2. till

    till Super Moderator Howtoforge Staff HowtoForge Supporter ISPConfig Developer

  3. kmchen

    kmchen New Member

    Thanks. I added the domain name in /etc/hosts. But what url then ?
    Tried ip_server and ip_server/domain_name with no result
     
  4. till

    till Super Moderator Howtoforge Staff HowtoForge Supporter ISPConfig Developer

    The url is the domain that you added, so if you added domain.tld, then open http://domain.tld in the browser to access the website.
     
  5. kmchen

    kmchen New Member

    How would this be possible?

    How would this be possible? The domain.tld already exists and works on another server !
     
  6. till

    till Super Moderator Howtoforge Staff HowtoForge Supporter ISPConfig Developer

    The purpose of the /etc/hosts file is to override domains in DNS. So if you set the domain in the hosts file (on your desktop, not the server!), then it instructs your browser to access the server that is defined in /etc/hosts and to ignore the DNS record. Just try it, you will see then that it works for Linux, *BSD, Windows and MacOS.
     
  7. kmchen

    kmchen New Member

    want to put all websites in place on the new server

    Thanks a lot. It works fine. It took me a long time to understand it was to set on MY LOCAL DESKTOP. Confused. English is not my native language and sometiome I read to quickly.
     
    Last edited: Jan 4, 2012
  8. kmchen

    kmchen New Member

    403 error again

    It works fine when I select suphp or cgi options in a website.
    Now, when I select fastcgi in website options I get 403 error again !
     
  9. till

    till Super Moderator Howtoforge Staff HowtoForge Supporter ISPConfig Developer

    But thats not related to the way you access the site with a hosts file. You can find the reason for the error in the error.log file of the website.
     
  10. kmchen

    kmchen New Member

    OK. Thanks for your help. To end that topic. If I need to build a test site without domain name. I can't ask my users to manipulate their hosts file. Is there a solution with ispconfig for that ?
     
  11. till

    till Super Moderator Howtoforge Staff HowtoForge Supporter ISPConfig Developer

    Sure, just assign a subdomain of a domain that you own as aliasdomian to access the site. Like customer1.yourdomain.tld and then access the website trough that domain.
     
    Last edited: Jan 6, 2012

Share This Page