direct access to website

Discussion in 'General' started by Hellbound, Jan 4, 2007.

  1. Hellbound

    Hellbound New Member

    hi guys,
    I know this have been asked before for many times,
    but I still can't find the answer.

    I need to connect to my website without domain name
    statement.

    meaning: instead of http://www.testdomain.com/
    I want to type ip address: http://10.10.10.10/testdomain/

    is it possible ?

    thanks
     
  2. martinfst

    martinfst Member Moderator

    Not by default. You may be successful by adding the userdir directive to your apache configuration manually (you should get the something like http://10.10.10.10/~user), but I believe this is not recommended with the ISPConfig setup. I haven't done this myself. Userdir is known for it's vulnerabilities.
     
  3. till

    till Super Moderator Staff Member ISPConfig Developer

    Is it a option for you to define your websites in the hosts file of your local windows, linux or mac workstation?
     
  4. Clogboy

    Clogboy New Member

    One option I have used for a long time is giving each customer a website alias under our domain. So if the customer website is http://www.customer.com/ I would also create a domain alias of http://customer.ourisp.com/

    This would give the customer the ability to start uploading and testing their website before they would have their domain name changed over from their previous ISP.
     
  5. Hellbound

    Hellbound New Member

    I think it is a very good idea that Clogboy suggested
    is it possible to add it as a built-in feature in ispconfig?

    thanks
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    This is possible in ISPConfig already, just add a co-domain to the website with customer.ourisp.com and chech the create DNS checkbox, as long as the DNS-Record of the domain ourisp.com is managed on the same server, everything is configured autonatically.
     
  7. martinfst

    martinfst Member Moderator

    It's already part of ISPConfig. Just create the co-domain customer.ispmaindomain.com for your new customer.
     
  8. Herbert

    Herbert New Member

    For direct access modify your httpd.conf
    http://10.0.0.150/~web1 etc.. is working

    example:

    <IfModule mod_userdir.c>
    UserDir /var/www/*/web/
    </IfModule>
    <Directory /var/www/*/web>
    AllowOverride FileInfo AuthConfig Limit
    Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
    AddType application/x-httpd-php .php .php3 .php4 .php5
    AddHandler cgi-script .cgi
    AddHandler cgi-script .pl
    <Limit GET POST OPTIONS>
    Order allow,deny
    Allow from all
    </Limit>
    <LimitExcept GET POST OPTIONS>
    Order deny,allow
    Deny from all
    </LimitExcept>
    </Directory>
     
  9. Hellbound

    Hellbound New Member

    thanks for the reply.
    I think since many people also requested for it
    it is a good option to add into domain setting for example
    a check box > ALLOW DIRECT ACCESS

    so Ispconfig automatically add it into httpd.conf

    I don't want to mess around with httpd.conf

    thanks again
     
  10. till

    till Super Moderator Staff Member ISPConfig Developer

Share This Page