Questions in regards to ISP-Server Setup - Ubuntu 5.10 "Breezy Badger"

Discussion in 'HOWTO-Related Questions' started by rbrantley, Mar 22, 2006.

  1. rbrantley

    rbrantley New Member

    I am relatively new to linux in itself, although I have played around with RH, SuSE, and Mandrake in the distant past. I want to be able to run my own web server using the ISPConfig HowTo. I followed the instruction and it seems to be working grat. Much kudos to tado for writing this easy to follow setup. However I'm having some problems understanding a few issues. Here is some basic information on what I've already done or have in place:

    • Registered thermalhost.com
    • Also currently have cipherghost.com and 454corp.com which I have owned for several years hosted elsewhere. (Ideally I'd like to move these domains onto this box as well)

    1) On page 3, under the section Setting the Hostname it gives an exmple as follows:

    Code:
    echo server1.example.com > /etc/hostname
    /bin/hostname -F /etc/hostname
    Regardless of what I change this to(i.e. server.thermalhost.com) certain parts of Ubuntu stop working, if I reboot I get a message stating that it the hostname has an error and gives me a warning that certain parts of the OS may not operate correctly. It then gives me the option to try again or login anyway. Once I choose login anyway, I can't do basic things such as open File Browser, gEdit, Synaptic Package Manager, etc...It seems like the change prevents these from working in its entirety. Not knowing what to do the first time I simply reformatted and skipped the Setting the Hostname section and went through the entire installation, which is working fine it seems. I tried to set the hostname again last night with the same results as before, I ound that after logging back in it acted the very same way and I tried, using terminal, to change it back to localhost. It started working again but I'm unsure of how to go about this.

    2) Also another issue I'm having trouble understanding is with BIND. I have my registrar setup to look at my server for DNS resolution. I also was thinking of using everydns.net as a secondary DNS if possible. However when I check DNS report I receive several fatals. I am unsure exactly how to treat each of these, some of them(i.e. ns0.thermalhost.com; mail.thermalhost.com) need a DNS entry but I am thinking that these would need to be edited in the named.conf directly instead of using ISPConfig. Please check out my DNSReport here .

    If I need to submit more information please let me know. Thanks in advance for any advice offered.
     
  2. falko

    falko Super Moderator Howtoforge Staff Moderator HowtoForge Supporter ISPConfig Developer

    You must make sure that the hostname you use exists in DNS. If it doesn't, then you should at least add it to /etc/hosts.

    thermalhost.com points to a private IP address:

    Code:
    dig thermalhost.com
    
    ; <<>> DiG 9.2.1 <<>> thermalhost.com
    ;; global options:  printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 26538
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
    
    ;; QUESTION SECTION:
    ;thermalhost.com.               IN      A
    
    ;; ANSWER SECTION:
    thermalhost.com.        86400   IN      A       [B][COLOR="Red"]192.168.2.2[/COLOR][/B]
    
    ;; Query time: 371 msec
    ;; SERVER: 81.169.163.104#53(81.169.163.104)
    ;; WHEN: Wed Mar 22 17:51:34 2006
    ;; MSG SIZE  rcvd: 49
    
    You must use public IP addresses because otherwise nobody from outside your network can see your site.

    Have a look here: http://www.howtoforge.com/forums/showpost.php?p=6292&postcount=4
    and here: http://www.howtoforge.com/traditional_dns_howto
    and here: http://en.wikipedia.org/wiki/Domain_name_system to learn more about DNS.
     
  3. rbrantley

    rbrantley New Member

    Thanks for the reply Falko, I will read over these articles you suggested and give them a go this evening. If I have any more question I will post them back in this thread. Thanks again!
     
  4. rbrantley

    rbrantley New Member

    I believe I have these options configured correctly now. Additionally I would appreciate someone to look over these screenshots I've taken of the various config screens. I seem to be having trouble understanding the documentation fully, so please excuse my ignorance. Here is a pdf with all of the screenshots I thought might pertain to some of my misconfiguration. To clarify let me first say that this server is behind an IPCop box. I have all necessary ports forwarded to my server which resides on orange(192.168.2.2)

    1) Regarding postfix I cannot seem to get past my ISP when it comes to sending mail to my domain, mail.thermalhost.com(68.15.249.219) I have to use smarthost.coxmail.com as a relayhost and I have set it as such in /postfix/main.cf. After setting it and restarting postfix I tested it by sending a mail from my gmail account to admin@thermalhost.com and got the following result:
    How would I go about correcting this or is it possible?

    2) Secondly I tried to test one of my website before migrating the domain name from my current host to myself. I FTP'ed my index.php page off of my host and onto www.thermalhost.com/www.cipherghost.com. When I browse to it I just get the code for the index.php (This can be seen in my PDF file that I linked, the picture is at the very bottom.

    Basically all-in-all I want www.thermalhost.com to be my webpage for my lil "ISP" where I can post what I do and why with it. I also want mail.thermalhost.com will klink to postifx for all domains regardless of name, ns0.thermalhost.com/ns1.thermalhost com are pointed from my registrar to my box which IPCop port forwards over to my ISPConfig box. I want to use these as the baseline for all domains. The additionally I want to host cipherghost.com and nocturnalrage.net but somehow I'd like to test them before I point the domain names at my server as they are up and running on my host currently and are functional. I know this may seem like a lot and maybe I'm making it a heck of a lot harder than it is, but again please bear with my ignorance and confusion. I appreciate any and all help. Thanks again :)

    RBrantley
     
  5. falko

    falko Super Moderator Howtoforge Staff Moderator HowtoForge Supporter ISPConfig Developer

    You might also have to provide a username and a password for smarthost.coxmail.com: http://www.howtoforge.com/forums/showpost.php?p=1594&postcount=18

    This happens because you're using www.thermalhost.com instead of www.cipherghost.com which is a completely different vhost.

    And you cannot use www.cipherghost.com right now because it is pointing to the wrong IP address: 216.35.197.40 instead of 68.15.249.219.
    This happens although you have configured everything correctly in ISPConfig. But the problem is: the ISPConfig server is not the authoritative name server for cipherghost.com. The authoritative name servers are:

    Code:
     dig ns cipherghost.com
    
    ; <<>> DiG 9.2.1 <<>> ns cipherghost.com
    ;; global options:  printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 40484
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0
    
    ;; QUESTION SECTION:
    ;cipherghost.com.               IN      NS
    
    ;; ANSWER SECTION:
    cipherghost.com.        25882   IN      NS      [B][COLOR="Red"]ns1.server341.com[/COLOR][/B].
    cipherghost.com.        25882   IN      NS      [B][COLOR="Red"]ns2.server341.com[/COLOR][/B].
    
    ;; Query time: 638 msec
    ;; SERVER: 81.169.163.104#53(81.169.163.104)
    ;; WHEN: Thu Mar 30 15:44:33 2006
    ;; MSG SIZE  rcvd: 79
    If you want your ISPConfig server to be authoritative for cipherghost.com, you must tell the registrar about it so that he can make the necessary changes.
     
  6. rbrantley

    rbrantley New Member

    Thanks for you time and your answer Falko, I will check on the smarthost relay later today. Also am I understanding correctly that I cannot truey test the functionality of cipherghost.com before transfering the domain, I basically just want to see once I transfer the domain it will work correctly. Other than what I mentioned above is there anything else that looks awry in my setup in your opinion?
     
  7. falko

    falko Super Moderator Howtoforge Staff Moderator HowtoForge Supporter ISPConfig Developer

    You must point cipherghost.com to your ISPConfig server's IP address. If you do this on the current name servers or tell your registrar that you want to use your own name servers doesn't matter.
    If you just want to test, you can also modify your client PC's hosts file: http://www.howtoforge.com/forums/showthread.php?t=432&highlight=hosts file windows


    What I've seen so far looks ok. :)
     
  8. rbrantley

    rbrantley New Member

    Ok here's yet another one :p

    I setup one that I can afford to mess with, my blog :) I've got for nocturnalrage.net forwarded to my box. I have the data in place and the sql tables in place for my blog, yet all I ever get is untiltled document and a blank page, I uploaded it into the /web/ directory under the login I set for nocturnalrage.net...What am I doing wrong?
     
  9. falko

    falko Super Moderator Howtoforge Staff Moderator HowtoForge Supporter ISPConfig Developer

    Anything in your Apache error log?
     
  10. rbrantley

    rbrantley New Member

    It seems that any site I have setup is redirecting to /var/www/ instead of var/www/(web1/web2/web3) etc... This possibly is a problem in my initial setup through the ISPConfig web GUI, but I'm not sure what it could be. Here is a piece of my apache2 errog log from yesterday and today:


    Code:
    [Thu Apr 06 11:00:37 2006] [error] [client 192.168.1.1] (13)Permission denied: access to /www.nocturnalrage.net/Maildir/index.html denied, referer: http://www.nocturnalrage.net/
    [Thu Apr 06 11:00:37 2006] [error] [client 192.168.1.1] (13)Permission denied: access to /www.nocturnalrage.net/Maildir/index.htm denied, referer: http://www.nocturnalrage.net/
    [Thu Apr 06 11:00:37 2006] [error] [client 192.168.1.1] (13)Permission denied: access to /www.nocturnalrage.net/Maildir/index.shtml denied, referer: http://www.nocturnalrage.net/
    [Thu Apr 06 11:00:37 2006] [error] [client 192.168.1.1] (13)Permission denied: access to /www.nocturnalrage.net/Maildir/index.cgi denied, referer: http://www.nocturnalrage.net/
    [Thu Apr 06 11:00:37 2006] [error] [client 192.168.1.1] (13)Permission denied: access to /www.nocturnalrage.net/Maildir/index.php denied, referer: http://www.nocturnalrage.net/
    [Thu Apr 06 11:00:37 2006] [error] [client 192.168.1.1] (13)Permission denied: access to /www.nocturnalrage.net/Maildir/index.php3 denied, referer: http://www.nocturnalrage.net/
    [Thu Apr 06 11:00:37 2006] [error] [client 192.168.1.1] (13)Permission denied: access to /www.nocturnalrage.net/Maildir/index.pl denied, referer: http://www.nocturnalrage.net/
    [Thu Apr 06 11:00:37 2006] [error] [client 192.168.1.1] (13)Permission denied: access to /www.nocturnalrage.net/Maildir/index.xhtml denied, referer: http://www.nocturnalrage.net/
    [Thu Apr 06 11:00:53 2006] [error] [client 192.168.1.1] (13)Permission denied: access to /www.cipherghost.com/Maildir/index.html denied, referer: http://www.nocturnalrage.net/
    [Thu Apr 06 11:00:53 2006] [error] [client 192.168.1.1] (13)Permission denied: access to /www.cipherghost.com/Maildir/index.htm denied, referer: http://www.nocturnalrage.net/
    [Thu Apr 06 11:00:53 2006] [error] [client 192.168.1.1] (13)Permission denied: access to /www.cipherghost.com/Maildir/index.shtml denied, referer: http://www.nocturnalrage.net/
    [Thu Apr 06 11:00:53 2006] [error] [client 192.168.1.1] (13)Permission denied: access to /www.cipherghost.com/Maildir/index.cgi denied, referer: http://www.nocturnalrage.net/
    [Thu Apr 06 11:00:53 2006] [error] [client 192.168.1.1] (13)Permission denied: access to /www.cipherghost.com/Maildir/index.php denied, referer: http://www.nocturnalrage.net/
    [Thu Apr 06 11:00:53 2006] [error] [client 192.168.1.1] (13)Permission denied: access to /www.cipherghost.com/Maildir/index.php3 denied, referer: http://www.nocturnalrage.net/
    [Thu Apr 06 11:00:53 2006] [error] [client 192.168.1.1] (13)Permission denied: access to /www.cipherghost.com/Maildir/index.pl denied, referer: http://www.nocturnalrage.net/
    [Thu Apr 06 11:00:53 2006] [error] [client 192.168.1.1] (13)Permission denied: access to /www.cipherghost.com/Maildir/index.xhtml denied, referer: http://www.nocturnalrage.net/
    [Thu Apr 06 11:01:08 2006] [error] [client 192.168.1.1] File does not exist: /var/www/favicon.ico
    [Thu Apr 06 11:01:08 2006] [error] [client 192.168.1.1] File does not exist: /var/www/favicon.ico
    [Thu Apr 06 11:01:27 2006] [error] [client 192.168.1.1] (13)Permission denied: access to /www.nocturnalrage.net/Maildir/index.html denied, referer: http://www.thermalhost.com/
    [Thu Apr 06 11:01:27 2006] [error] [client 192.168.1.1] (13)Permission denied: access to /www.nocturnalrage.net/Maildir/index.htm denied, referer: http://www.thermalhost.com/
    [Thu Apr 06 11:01:27 2006] [error] [client 192.168.1.1] (13)Permission denied: access to /www.nocturnalrage.net/Maildir/index.shtml denied, referer: http://www.thermalhost.com/
    [Thu Apr 06 11:01:27 2006] [error] [client 192.168.1.1] (13)Permission denied: access to /www.nocturnalrage.net/Maildir/index.cgi denied, referer: http://www.thermalhost.com/
    [Thu Apr 06 11:01:27 2006] [error] [client 192.168.1.1] (13)Permission denied: access to /www.nocturnalrage.net/Maildir/index.php denied, referer: http://www.thermalhost.com/
    [Thu Apr 06 11:01:27 2006] [error] [client 192.168.1.1] (13)Permission denied: access to /www.nocturnalrage.net/Maildir/index.php3 denied, referer: http://www.thermalhost.com/
    [Thu Apr 06 11:01:27 2006] [error] [client 192.168.1.1] (13)Permission denied: access to /www.nocturnalrage.net/Maildir/index.pl denied, referer: http://www.thermalhost.com/
    [Thu Apr 06 11:01:27 2006] [error] [client 192.168.1.1] (13)Permission denied: access to /www.nocturnalrage.net/Maildir/index.xhtml denied, referer: http://www.thermalhost.com/
    [Thu Apr 06 11:12:41 2006] [error] [client 192.168.1.1] (13)Permission denied: access to /www.cipherghost.com/Maildir/index.html denied, referer: http://www.nocturnalrage.net/
    [Thu Apr 06 11:12:41 2006] [error] [client 192.168.1.1] (13)Permission denied: access to /www.cipherghost.com/Maildir/index.htm denied, referer: http://www.nocturnalrage.net/
    [Thu Apr 06 11:12:41 2006] [error] [client 192.168.1.1] (13)Permission denied: access to /www.cipherghost.com/Maildir/index.shtml denied, referer: http://www.nocturnalrage.net/
    [Thu Apr 06 11:12:41 2006] [error] [client 192.168.1.1] (13)Permission denied: access to /www.cipherghost.com/Maildir/index.cgi denied, referer: http://www.nocturnalrage.net/
    [Thu Apr 06 11:12:41 2006] [error] [client 192.168.1.1] (13)Permission denied: access to /www.cipherghost.com/Maildir/index.php denied, referer: http://www.nocturnalrage.net/
    [Thu Apr 06 11:12:41 2006] [error] [client 192.168.1.1] (13)Permission denied: access to /www.cipherghost.com/Maildir/index.php3 denied, referer: http://www.nocturnalrage.net/
    [Thu Apr 06 11:12:41 2006] [error] [client 192.168.1.1] (13)Permission denied: access to /www.cipherghost.com/Maildir/index.pl denied, referer: http://www.nocturnalrage.net/
    [Thu Apr 06 11:12:41 2006] [error] [client 192.168.1.1] (13)Permission denied: access to /www.cipherghost.com/Maildir/index.xhtml denied, referer: http://www.nocturnalrage.net/
    [Thu Apr 06 11:13:04 2006] [error] [client 192.168.1.1] (13)Permission denied: access to /www.nocturnalrage.net/Maildir/index.html denied, referer: http://www.nocturnalrage.net/
    [Thu Apr 06 11:13:04 2006] [error] [client 192.168.1.1] (13)Permission denied: access to /www.nocturnalrage.net/Maildir/index.htm denied, referer: http://www.nocturnalrage.net/
    [Thu Apr 06 11:13:04 2006] [error] [client 192.168.1.1] (13)Permission denied: access to /www.nocturnalrage.net/Maildir/index.shtml denied, referer: http://www.nocturnalrage.net/
    [Thu Apr 06 11:13:04 2006] [error] [client 192.168.1.1] (13)Permission denied: access to /www.nocturnalrage.net/Maildir/index.cgi denied, referer: http://www.nocturnalrage.net/
    [Thu Apr 06 11:13:04 2006] [error] [client 192.168.1.1] (13)Permission denied: access to /www.nocturnalrage.net/Maildir/index.php denied, referer: http://www.nocturnalrage.net/
    [Thu Apr 06 11:13:04 2006] [error] [client 192.168.1.1] (13)Permission denied: access to /www.nocturnalrage.net/Maildir/index.php3 denied, referer: http://www.nocturnalrage.net/
    [Thu Apr 06 11:13:04 2006] [error] [client 192.168.1.1] (13)Permission denied: access to /www.nocturnalrage.net/Maildir/index.pl denied, referer: http://www.nocturnalrage.net/
    [Thu Apr 06 11:13:04 2006] [error] [client 192.168.1.1] (13)Permission denied: access to /www.nocturnalrage.net/Maildir/index.xhtml denied, referer: http://www.nocturnalrage.net/
    [Thu Apr 06 11:13:24 2006] [error] [client 64.34.145.197] File does not exist: /var/www/robots.txt
    [Thu Apr 06 11:13:24 2006] [error] [client 64.34.145.197] File does not exist: /var/www/formulas-relationships
    
    Basically I am having several different issues I believe, this one, mail, and a couple of others. The mail and others I can work on later, mainly I'm interested in getting my sites working, ftp works fine so I have uploaded 3 sites so far and imported 3 SQL backups flawlessly, I'm just confused on why all the websites would point to the root directory of var/www/. It almost seems like the vHosts aren't being created correctly or I'm missing a step somewhere. Please refer to nocturnalrage.net, thermalhost.com for reference.

    Thanks again Falko for all you help and understanding, if you need more info just let me know and I can post whatever you might need to look at.
     
    Last edited: Apr 6, 2006
  11. falko

    falko Super Moderator Howtoforge Staff Moderator HowtoForge Supporter ISPConfig Developer

    What's in /etc/apache2/vhosts/Vhosts_ispconfig.conf and /etc/apache2/sites-available/default?
    What's the output of
    Code:
    ls -la /var/www
    ?
     
  12. rbrantley

    rbrantley New Member

    Vhosts_ispconfig.conf
    Code:
    ###################################
    #
    # ISPConfig vHost Configuration File
    #         Version 1.0
    #
    ###################################
    #
    NameVirtualHost 68.15.249.219:80
    <VirtualHost 68.15.249.219:80>
      ServerName localhost
      ServerAdmin root@localhost
      DocumentRoot /var/www/sharedip
    </VirtualHost>
    #
    #
    ######################################
    # Vhost: www.cipherghost.com:80
    ######################################
    #
    #
    <VirtualHost 68.15.249.219:80>
    ServerName www.cipherghost.com:80
    ServerAdmin webmaster@cipherghost.com
    DocumentRoot /var/www/web1/web
    ServerAlias cipherghost.com
    DirectoryIndex index.html index.htm index.php index.php5 index.php4 index.php3 index.shtml index.cgi index.pl index.jsp Default.htm default.htm
    ScriptAlias  /cgi-bin/ /var/www/web1/cgi-bin/
    AddHandler cgi-script .cgi
    AddHandler cgi-script .pl
    ErrorLog /var/www/web1/log/error.log
    AddType application/x-httpd-php .php .php3 .php4 .php5
    <Files *.php>
        SetOutputFilter PHP
        SetInputFilter PHP
    </Files>
    <Files *.php3>
        SetOutputFilter PHP
        SetInputFilter PHP
    </Files>
    <Files *.php4>
        SetOutputFilter PHP
        SetInputFilter PHP
    </Files>
    <Files *.php5>
        SetOutputFilter PHP
        SetInputFilter PHP
    </Files>
    php_admin_flag safe_mode On
    php_admin_value open_basedir /var/www/web1/
    php_admin_value file_uploads 1
    php_admin_value upload_tmp_dir /var/www/web1/phptmp/
    php_admin_value session.save_path /var/www/web1/phptmp/
    AddType text/html .shtml
    AddOutputFilter INCLUDES .shtml
    Alias /error/ "/var/www/web1/web/error/"
    ErrorDocument 400 /error/invalidSyntax.html
    ErrorDocument 401 /error/authorizationRequired.html
    ErrorDocument 403 /error/forbidden.html
    ErrorDocument 404 /error/fileNotFound.html
    ErrorDocument 405 /error/methodNotAllowed.html
    ErrorDocument 500 /error/internalServerError.html
    ErrorDocument 503 /error/overloaded.html
    AliasMatch ^/~([^/]+)(/(.*))? /var/www/web1/user/$1/web/$3
    AliasMatch ^/users/([^/]+)(/(.*))? /var/www/web1/user/$1/web/$3
    </VirtualHost>
    #
    #
    #
    ######################################
    # Vhost: www.freemealdefensivedriving.com:80
    ######################################
    #
    #
    <VirtualHost 68.15.249.219:80>
    ServerName www.freemealdefensivedriving.com:80
    ServerAdmin webmaster@freemealdefensivedriving.com
    DocumentRoot /var/www/web2/web
    ServerAlias freemealdefensivedriving.com
    DirectoryIndex index.html index.htm index.php index.php5 index.php4 index.php3 index.shtml index.cgi index.pl index.jsp Default.htm default.htm
    ScriptAlias  /cgi-bin/ /var/www/web2/cgi-bin/
    AddHandler cgi-script .cgi
    AddHandler cgi-script .pl
    ErrorLog /var/www/web2/log/error.log
    AddType application/x-httpd-php .php .php3 .php4 .php5
    <Files *.php>
        SetOutputFilter PHP
        SetInputFilter PHP
    </Files>
    <Files *.php3>
        SetOutputFilter PHP
        SetInputFilter PHP
    </Files>
    <Files *.php4>
        SetOutputFilter PHP
        SetInputFilter PHP
    </Files>
    <Files *.php5>
        SetOutputFilter PHP
        SetInputFilter PHP
    </Files>
    php_admin_flag safe_mode On
    php_admin_value open_basedir /var/www/web2/
    php_admin_value file_uploads 1
    php_admin_value upload_tmp_dir /var/www/web2/phptmp/
    php_admin_value session.save_path /var/www/web2/phptmp/
    AddType text/html .shtml
    AddOutputFilter INCLUDES .shtml
    Alias /error/ "/var/www/web2/web/error/"
    ErrorDocument 400 /error/invalidSyntax.html
    ErrorDocument 401 /error/authorizationRequired.html
    ErrorDocument 403 /error/forbidden.html
    ErrorDocument 404 /error/fileNotFound.html
    ErrorDocument 405 /error/methodNotAllowed.html
    ErrorDocument 500 /error/internalServerError.html
    ErrorDocument 503 /error/overloaded.html
    AliasMatch ^/~([^/]+)(/(.*))? /var/www/web2/user/$1/web/$3
    AliasMatch ^/users/([^/]+)(/(.*))? /var/www/web2/user/$1/web/$3
    </VirtualHost>
    #
    #
    #
    ######################################
    # Vhost: www.nocturnalrage.net:80
    ######################################
    #
    #
    <VirtualHost 68.15.249.219:80>
    ServerName www.nocturnalrage.net:80
    ServerAdmin webmaster@nocturnalrage.net
    DocumentRoot /var/www/web3/web
    ServerAlias nocturnalrage.net
    DirectoryIndex index.html index.htm index.php index.php5 index.php4 index.php3 index.shtml index.cgi index.pl index.jsp Default.htm default.htm
    ScriptAlias  /cgi-bin/ /var/www/web3/cgi-bin/
    AddHandler cgi-script .cgi
    AddHandler cgi-script .pl
    ErrorLog /var/www/web3/log/error.log
    AddType application/x-httpd-php .php .php3 .php4 .php5
    <Files *.php>
        SetOutputFilter PHP
        SetInputFilter PHP
    </Files>
    <Files *.php3>
        SetOutputFilter PHP
        SetInputFilter PHP
    </Files>
    <Files *.php4>
        SetOutputFilter PHP
        SetInputFilter PHP
    </Files>
    <Files *.php5>
        SetOutputFilter PHP
        SetInputFilter PHP
    </Files>
    php_admin_flag safe_mode On
    php_admin_value open_basedir /var/www/web3/
    php_admin_value file_uploads 1
    php_admin_value upload_tmp_dir /var/www/web3/phptmp/
    php_admin_value session.save_path /var/www/web3/phptmp/
    AddType text/html .shtml
    AddOutputFilter INCLUDES .shtml
    Alias /error/ "/var/www/web3/web/error/"
    ErrorDocument 400 /error/invalidSyntax.html
    ErrorDocument 401 /error/authorizationRequired.html
    ErrorDocument 403 /error/forbidden.html
    ErrorDocument 404 /error/fileNotFound.html
    ErrorDocument 405 /error/methodNotAllowed.html
    ErrorDocument 500 /error/internalServerError.html
    ErrorDocument 503 /error/overloaded.html
    AliasMatch ^/~([^/]+)(/(.*))? /var/www/web3/user/$1/web/$3
    AliasMatch ^/users/([^/]+)(/(.*))? /var/www/web3/user/$1/web/$3
    </VirtualHost>
    #
    #
    #
    /etc/apache2/sites-available/default
    Code:
    NameVirtualHost *
    <VirtualHost *>
    	ServerAdmin webmaster@localhost
    	
    	DocumentRoot /var/www/
    	<Directory />
    		Options FollowSymLinks
    		AllowOverride None
    	</Directory>
    	<Directory /var/www/>
    		Options Indexes FollowSymLinks MultiViews
    		AllowOverride None
    		Order allow,deny
    		allow from all
    		# This directive allows us to have apache2's default start page
                    # in /apache2-default/, but still have / go to the right place
                    # Commented out for Ubuntu
                    #RedirectMatch ^/$ /apache2-default/
    	</Directory>
    
    	ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
    	<Directory "/usr/lib/cgi-bin">
    		AllowOverride None
    		Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
    		Order allow,deny
    		Allow from all
    	</Directory>
    
    	ErrorLog /var/log/apache2/error.log
    
    	# Possible values include: debug, info, notice, warn, error, crit,
    	# alert, emerg.
    	LogLevel warn
    
    	CustomLog /var/log/apache2/access.log combined
    	ServerSignature On
    
        Alias /doc/ "/usr/share/doc/"
        <Directory "/usr/share/doc/">
            Options Indexes MultiViews FollowSymLinks
            AllowOverride None
            Order deny,allow
            Deny from all
            Allow from 127.0.0.0/255.0.0.0 ::1/128
        </Directory>
    
    </VirtualHost>
    

    Code:
    drwxr-xr-x   8 root               root 4096 2006-04-06 11:29 .
    drwxr-xr-x  16 root               root 4096 2006-03-28 23:39 ..
    drwxr-xr-x   2 root               root 4096 2006-03-28 23:39 apache2-default
    drwxr-xr-x   2 root               root 4096 2006-03-29 00:04 sharedip
    drwxr-xr-x   8 web1_rory.brantley web1 4096 2006-04-05 20:06 web1
    drwxr-xr-x   8 web2_fmdd          web2 4096 2006-03-29 12:27 web2
    drwxr-xr-x   8 web3_nocturnalrage web3 4096 2006-04-05 20:14 web3
    drwxr-xr-x   2 root               root 4096 2006-03-28 23:58 webalizer
    lrwxrwxrwx   1 www-data           web1   13 2006-03-29 07:19 [url]www.cipherghost.com[/url] -> /var/www/web1
    lrwxrwxrwx   1 www-data           web2   13 2006-03-29 12:24 [url]www.freemealdefensivedriving.com[/url] -> /var/www/web2
    lrwxrwxrwx   1 www-data           web3   13 2006-04-05 20:07 [url]www.nocturnalrage.net[/url] -> /var/www/web3
    Thanks again Falko :)
     
  13. falko

    falko Super Moderator Howtoforge Staff Moderator HowtoForge Supporter ISPConfig Developer

  14. rbrantley

    rbrantley New Member

    Ahh I should have stated this, although I have cipherghost.com and freemealdefensivedriving.com listed in the server the domains for those are still pointed to another host, server341.com and server294.com respectively. I haven't moved them over yet because I wanted to test nocturnalrage.net first. Nocturnalrage.net is setup as a client and it's data has been put in the /var/www/web3/web directory however when I try and pull it up it loads the index.htm from /var/www which also resolves Thermalhost.com. So the net effect is the box itself is listed as Thermalhost.com but whatever I put in /var/www for Thermalhost.com is shown by Nocturnalrage.net...On my end since my box is set to use it's own DNS cipherghost.com and freemealdefensivedriving.com appear to pull the same index.htm from Thermalhost.com as well.
     
  15. falko

    falko Super Moderator Howtoforge Staff Moderator HowtoForge Supporter ISPConfig Developer

    So your client PC is using an internal DNS server that resolves your domains to your internal ISPConfig server?
     
  16. rbrantley

    rbrantley New Member

    No the client machines use my ISP's DNS and the ISPConfig uses it own DNS internally for testing purposes. However after testing at my work today as well if I go to Thermalhost.com which is the box itself, it pulls up my dummy mockup graphic for it (index.htm and the graphic resides in /var/www/). But if I go to nocturnalrage.net which resolves to this same ISPConfig box, it pulls up the Thermalhost.com image as well(it's data which is seperate in this case resides in /var/www/web3/web) yet it still pulls up the index.htm file from /var/www, this I guess is partially where I'm confused. You can see from the PDF file I posted earlier where I setup www.thermalhost.com on the Management portion and then later (not in the PDF file) I setup Nocturnalrage.net as a regualr client. This I suppose could be causing the problem as well. If you go to www.thermalhost.com/www.nocturnalrage.net/ it will pull up the index.php page for nocturnalrage.net although it doesn't load the PHP page in the conventional method, it loads it like some sort of text file, which it actually isn't. You can also verify it compared to my old host which is at http://nocturnalrage.cipherghost.com to see what it looks like when it loads normally. The fact that is loading like a tet file of some sort might be the reason that the Thermalhost default webpage pulls up instead, if it can't see any data there or it's possibly looking in the wrong place I guess ISPConfig may default it back to /var/www/ for data, I don't know if it performs this functionality, but I have seen others do that type of stuff before with vHosts if it can't find the page, etc... I guess my biggest hardship in this is not knowing as much as I thought I did about DNS and still struggling with its concepts even with the guide you posted Falko, my limited knowledge of the configuration of ISPConfig itself, or me making it harder than it really is is probably another.
     
  17. falko

    falko Super Moderator Howtoforge Staff Moderator HowtoForge Supporter ISPConfig Developer

Share This Page