Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #11  
Old 6th April 2006, 23:09
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

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
?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Sponsored Links
  #12  
Old 7th April 2006, 00:23
rbrantley rbrantley is offline
Junior Member
 
Join Date: Mar 2006
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
What's in /etc/apache2/vhosts/Vhosts_ispconfig.conf and /etc/apache2/sites-available/default?
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>

Quote:
What's the output of
Code:
ls -la /var/www
?
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 www.cipherghost.com -> /var/www/web1
lrwxrwxrwx   1 www-data           web2   13 2006-03-29 12:24 www.freemealdefensivedriving.com -> /var/www/web2
lrwxrwxrwx   1 www-data           web3   13 2006-04-05 20:07 www.nocturnalrage.net -> /var/www/web3
Thanks again Falko
Reply With Quote
  #13  
Old 7th April 2006, 12:14
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Looks ok.

I found that www.cipherghost.com, www.freemealdefensivedriving.com and www.nocturnalrage.net are working for me...
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #14  
Old 7th April 2006, 14:23
rbrantley rbrantley is offline
Junior Member
 
Join Date: Mar 2006
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.
Reply With Quote
  #15  
Old 8th April 2006, 01:47
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

So your client PC is using an internal DNS server that resolves your domains to your internal ISPConfig server?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #16  
Old 8th April 2006, 02:10
rbrantley rbrantley is offline
Junior Member
 
Join Date: Mar 2006
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by falko
So your client PC is using an internal DNS server that resolves your domains to your internal ISPConfig server?
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.
Reply With Quote
  #17  
Old 10th April 2006, 18:26
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
 
Default

What does Vhosts_ispconfig.conf look like?
Can you make your client PCs use a DNS server that points the three domains to the correct server (ISPConfig server)? If you don't have such a DNS server, you can modify your client PCs' hosts files: http://www.howtoforge.com/forums/sho...s+file+windows
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Statistic not working mzo Installation/Configuration 49 20th April 2011 12:19
Questions about ubuntu ISP-Server Setup badgerbox76 HOWTO-Related Questions 15 5th March 2006 14:41
Email - Ueb-Miau mazhar Installation/Configuration 5 21st December 2005 10:01
The Perfect Setup Suse 9.3 - Postfix problems new_bee05 HOWTO-Related Questions 20 25th November 2005 02:30
ISP-Server Setup - Ubuntu 5.10 "Breezy Badger" & PHP Brenton HOWTO-Related Questions 2 19th October 2005 19:03


All times are GMT +2. The time now is 06:25.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.