Virtual Host & ISPConfig

Discussion in 'General' started by vaio1, Jul 10, 2007.

  1. vaio1

    vaio1 ISPConfig Developer ISPConfig Developer

    Hi guys,

    I need to create a virtual host and I would like follow a tutorial to understand how can I add my own domains in ispconfig. I have tried to access to the VmWare Fedora 7 Server with an external browser but without success because the domains are not registered yet. Is there a way to test the system without set a real domain?

    The page that I see when I call the Ip of the server talk about the SHARED IP PAGE
    My ifconfig:
    Code:
    [[email protected] ispconfig]# ifconfig
    eth0      Link encap:Ethernet  HWaddr 00:0C:29:03:96:51
              inet addr:192.168.1.100  Bcast:192.168.1.255  Mask:255.255.255.0
              inet6 addr: fe80::20c:29ff:fe03:9651/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:5279 errors:0 dropped:0 overruns:0 frame:0
              TX packets:7882 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:766330 (748.3 KiB)  TX bytes:4063941 (3.8 MiB)
              Interrupt:17 Base address:0x1400
    
    eth0:0    Link encap:Ethernet  HWaddr 00:0C:29:03:96:51
              inet addr:192.168.0.101  Bcast:192.168.0.255  Mask:255.255.255.0
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              Interrupt:17 Base address:0x1400
    
    lo        Link encap:Local Loopback
              inet addr:127.0.0.1  Mask:255.0.0.0
              inet6 addr: ::1/128 Scope:Host
              UP LOOPBACK RUNNING  MTU:16436  Metric:1
              RX packets:868 errors:0 dropped:0 overruns:0 frame:0
              TX packets:868 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:0
              RX bytes:85151 (83.1 KiB)  TX bytes:85151 (83.1 KiB)
    
    I have see many post but no-one with a clear steps.
    What are the steps?

    My Dig Query:
    Code:
    [[email protected] ispconfig]# dig @localhost www.my-isp-site.com
    
    ; <<>> DiG 9.4.0 <<>> @localhost www.my-isp-site.com
    ; (1 server found)
    ;; global options:  printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 29293
    ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 0
    
    ;; QUESTION SECTION:
    ;www.my-isp-site.com.           IN      A
    
    ;; ANSWER SECTION:
    www.my-isp-site.com.    86400   IN      A       192.168.1.100
    
    ;; AUTHORITY SECTION:
    my-isp-site.com.        86400   IN      NS      server1.example.com.
    
    ;; Query time: 4 msec
    ;; SERVER: 127.0.0.1#53(127.0.0.1)
    ;; WHEN: Tue Jul 10 23:41:10 2007
    ;; MSG SIZE  rcvd: 83
    
    When a domain is deleted, the relative folder is not deleted in /var/www/

    ispconfig.log
    Code:
    10.07.2007 - 23:02:38 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 1099: ln -s /var/www/web9 /var/www/www.my-isp-site.com
    10.07.2007 - 23:02:38 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 257: setquota -g web9 102400 103424 0 0 -a &> /dev/null
    10.07.2007 - 23:02:38 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 258: setquota -T -g web9 604800 604800 -a &> /dev/null
    10.07.2007 - 23:02:38 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 277: Connected successfully
    10.07.2007 - 23:02:39 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_postfix.lib.php, Line 137: cp -fr /etc/postfix/local-host-names /etc/postfix/local-host-names~
    10.07.2007 - 23:02:39 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_postfix.lib.php, Line 284: cp -fr /etc/postfix/virtusertable /etc/postfix/virtusertable~
    10.07.2007 - 23:02:39 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_postfix.lib.php, Line 289: postmap hash:/etc/postfix/virtusertable
    10.07.2007 - 23:02:39 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 1231: cp -fr /etc/httpd/conf/vhosts/Vhosts_ispconfig.conf /etc/httpd/conf/vhosts/Vhosts_ispconfig.conf~
    10.07.2007 - 23:02:39 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 2418: httpd -t  &> /dev/null
    10.07.2007 - 23:02:39 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 2425: httpd syntax ok
    10.07.2007 - 23:02:39 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_system.lib.php, Line 728: /etc/rc.d/init.d/httpd reload &> /dev/null
    10.07.2007 - 23:02:39 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_system.lib.php, Line 728: /etc/rc.d/init.d/postfix stop &> /dev/null
    10.07.2007 - 23:02:40 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_system.lib.php, Line 728: /etc/rc.d/init.d/postfix start &> /dev/null
    10.07.2007 - 23:02:40 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 1892: cp -fr /etc/proftpd_ispconfig.conf /etc/proftpd_ispconfig.conf~
    
    Thanks
    Michelangelo
     
    Last edited: Jul 10, 2007
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Please have a look here:

    The folder is deleted, when you empty the recycle bin. Also do not mix up the the symlink to the website with the folder. The symlinks are cleaned up from time to time automatically, they do net get removed instantly.

    You can not access a website by its IP address as the websites are namebased. Please see my link above on how to access the site.
     
  3. vaio1

    vaio1 ISPConfig Developer ISPConfig Developer

    Thank Till for you help.

    I have forgotten that I have tried to open the website also by the name: http://my-isp-site.com too but the problem now is that the site is not reachable. Firefox told me that it is cannot open the page.

    Where is this link?!

    Thanks
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

Share This Page