Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 9th November 2006, 01:23
layla layla is offline
Member
 
Join Date: Oct 2006
Location: uk
Posts: 73
Thanks: 0
Thanked 0 Times in 0 Posts
Default apache not pointing to site

i am trying to set up several sites, but apache will only direct to var/www/html/
i obviously cannot show all of my first pages for each site as it cannot tell which one it is suposed to see, when you bring up a domain if that makes sence, it has made files for web1 etc but still no joy also the ftp server doesnt seem to be working, although all signs say it is,

can anyone tell me how i can get apache to point to the right web page? or folder all i can get is the fedora test page

my Vhosts_ispconfig.conf says this
###################################
#
# ISPConfig vHost Configuration File
# Version 1.0
#
###################################
#
NameVirtualHost 80.42.84.55:80
<VirtualHost 80.42.84.55:80>
ServerName localhost
ServerAdmin root@localhost
DocumentRoot /var/www/sharedip
</VirtualHost>
#
#
######################################
# Vhost: www.stiffmiddlefinger.com:80
######################################
#
#
<VirtualHost 80.42.84.55:80>
SuexecUserGroup nobody web1
ServerName www.stiffmiddlefinger.com:80
ServerAdmin webmaster@stiffmiddlefinger.com
DocumentRoot /var/www/web1/web
ServerAlias stiffmiddlefinger.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
ErrorLog /var/www/web1/log/error.log
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.freeuniquemusique.com:80
######################################
#
#
<VirtualHost 80.42.84.55:80>
SuexecUserGroup web2_layla web2
ServerName www.freeuniquemusique.com:80
ServerAdmin webmaster@freeuniquemusique.com
DocumentRoot /var/www/web2/web
ServerAlias freeuniquemusique.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 application/vnd.wap.wmlscriptc .wmlsc .wsc
AddType text/vnd.wap.wml .wml
AddType text/vnd.wap.wmlscript .ws .wmlscript
AddType image/vnd.wap.wbmp .wbmp
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.stiffmiddlefinger.co.uk:80
######################################
#
#
<VirtualHost 80.42.84.55:80>
SuexecUserGroup nobody web3
ServerName www.stiffmiddlefinger.co.uk:80
ServerAdmin webmaster@stiffmiddlefinger.co.uk
DocumentRoot /var/www/web3/web
ServerAlias stiffmiddlefinger.co.uk
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
ErrorLog /var/www/web3/log/error.log
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>
#
#
#

does anyone have any ideas?
Reply With Quote
Sponsored Links
  #2  
Old 9th November 2006, 17:05
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,743 Times in 2,577 Posts
Default

What's the output of
Code:
ifconfig
?
__________________
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
  #3  
Old 9th November 2006, 17:09
layla layla is offline
Member
 
Join Date: Oct 2006
Location: uk
Posts: 73
Thanks: 0
Thanked 0 Times in 0 Posts
Default

where is the output, how do i in it to post it, what file is it in ?
Reply With Quote
  #4  
Old 9th November 2006, 18:19
layla layla is offline
Member
 
Join Date: Oct 2006
Location: uk
Posts: 73
Thanks: 0
Thanked 0 Times in 0 Posts
Default ifconfig

eth0 Link encap:Ethernet HWaddr 00:16:EC:55:7E:0B
inet addr:192.168.0.4 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::216:ecff:fe55:7e0b/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:179717 errors:0 dropped:0 overruns:0 frame:0
TX packets:122855 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:90870991 (86.6 MiB) TX bytes:10904352 (10.3 MiB)
Interrupt:169 Base address:0xa800

eth0:0 Link encap:Ethernet HWaddr 00:16:EC:55:7E:0B
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:169 Base address:0xa800

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:56168 errors:0 dropped:0 overruns:0 frame:0
TX packets:56168 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:19483738 (18.5 MiB) TX bytes:19483738 (18.5 MiB)
Reply With Quote
  #5  
Old 10th November 2006, 14:48
sysconfig sysconfig is offline
Junior Member
 
Join Date: Nov 2006
Location: (.)
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to sysconfig
Default

You need to setup namebased virtual hosting: NameVirtualHost *:80

And correct the ip address in yoru httpd.conf file according to the output of ifconfig.
__________________
Linux Web Administrator
Optimize, secure and performance tunning for Apache || MySQL5.1 Cluster How To
The visionary conceives the impossible, The missionary makes it possible. ...Gita.
Reply With Quote
  #6  
Old 10th November 2006, 15:19
layla layla is offline
Member
 
Join Date: Oct 2006
Location: uk
Posts: 73
Thanks: 0
Thanked 0 Times in 0 Posts
Default

i have a vhosts file, how do i do this as my vhosts is already set up and what do i change in httpd config?
Reply With Quote
  #7  
Old 10th November 2006, 16:24
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,743 Times in 2,577 Posts
Default

Quote:
Originally Posted by layla
eth0 Link encap:Ethernet HWaddr 00:16:EC:55:7E:0B
inet addr:192.168.0.4 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::216:ecff:fe55:7e0b/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:179717 errors:0 dropped:0 overruns:0 frame:0
TX packets:122855 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:90870991 (86.6 MiB) TX bytes:10904352 (10.3 MiB)
Interrupt:169 Base address:0xa800

eth0:0 Link encap:Ethernet HWaddr 00:16:EC:55:7E:0B
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:169 Base address:0xa800

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:56168 errors:0 dropped:0 overruns:0 frame:0
TX packets:56168 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:19483738 (18.5 MiB) TX bytes:19483738 (18.5 MiB)
You're using the wrong IP address in ISPConfig. You must use 192.168.0.4 or 192.168.0.101, but you are using 80.42.84.55 now. You must always use the IP addresses that you see in the ifconfig output.
__________________
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
  #8  
Old 10th November 2006, 16:29
layla layla is offline
Member
 
Join Date: Oct 2006
Location: uk
Posts: 73
Thanks: 0
Thanked 0 Times in 0 Posts
Default

i a still unsure of where as i have my a records for my exxternal ip but where do i select my internal ipfor internal? i seem to have something on the internet for my sites but not sure what,
www.freeuniquemusique.com
www.multipleartasm.com
www.stiffmiddlefinger.com
www.stifmiddlefinger.co.uk
Reply With Quote
  #9  
Old 10th November 2006, 16:39
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,743 Times in 2,577 Posts
Default

Quote:
Originally Posted by layla
i a still unsure of where as i have my a records for my exxternal ip
That is correct, your DNS records must point to your public IP address so that everyone can get access to your web sites.

Quote:
Originally Posted by layla
but where do i select my internal ipfor internal?
You must set your local IP addresses in ISPConfig under Management -> Server -> Settings.
__________________
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
  #10  
Old 10th November 2006, 16:42
layla layla is offline
Member
 
Join Date: Oct 2006
Location: uk
Posts: 73
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

i have isp pointing at my internal address, 192.168.0.4 and my sites ip is internal, what about virtual hosting? how do i change that?
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
Static Web Site Configurations christopher Installation/Configuration 8 18th November 2006 14:43
Centos 4.4 32bit Hangs, High Server load 3cwired_com Server Operation 11 16th November 2006 15:47
mod_mono apache 2.2 ColdDoT Server Operation 5 23rd May 2006 02:58
Problem with the installation of Dokeos (LMS) in ISPConfig jofranco General 4 28th April 2006 00:45
New Site Shows Apache Default page not uploaded index.html mojosound Installation/Configuration 35 18th April 2006 10:59


All times are GMT +2. The time now is 20:53.


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