View Full Version : apache2-default
nok
22nd February 2006, 00:39
I've added a couple of sites to ISP Config, but they all insit on a redirect to "/apache2-default".
I think this setting is being picked up from "/etc/apache2/sites-available\default.conf" however I can't see where the file "/etc/apache2/vhosts/Vhosts_ispconfig.conf" is linked to for the configs....
Any help or pointers :confused:
________
Opiate rehab dicussion (http://www.rehab-forum.com/opiate-rehab/)
________
Yamaha lagenda series (http://www.yamaha-tech.com/wiki/Yamaha_Lagenda_series)
till
22nd February 2006, 08:45
Please search for the include for the file /etc/apache2/vhosts/Vhosts_ispconfig.conf at the end of one of these files: httpd.conf, apache.conf, apache2.conf
nok
22nd February 2006, 20:48
at the bottom of /etc/apache2/apache2.conf is.....
Include /etc/apache2/vhosts/Vhosts_ispconfig.conf
But how come all sites point to the default?
________
Brunette chubby (http://www.fucktube.com/categories/418/chubby/videos/1)
________
Effects of avandia (http://www.classactionsettlements.org/lawsuit/avandia/)
nok
22nd February 2006, 20:55
Can someone show me a sample of how the "Vhosts_ispconfig.conf" could look for a domain?
Just to give me an idea where mine is wrong?
________
UGGS (http://uggstoreshop.com/)
________
Homeade Vaporizer (http://vaporizer.org/reviews)
falko
22nd February 2006, 23:28
What's in your /etc/apache2/vhosts/Vhosts_ispconfig.conf?
nok
22nd February 2006, 23:34
###################################
#
# ISPConfig vHost Configuration File
# Version 1.0
#
###################################
#
NameVirtualHost *ip*::80
<VirtualHost *ip*::80>
ServerName localhost
ServerAdmin root@localhost
DocumentRoot /var/www/sharedip
</VirtualHost>
#
#
#
######################################
# Vhost: www.domain.com:80
######################################
#
#
<VirtualHost *ip*:80>
ServerName www.domain.com:80
ServerAdmin webmaster@domain.com
DocumentRoot /home/www/web12/web
ServerAlias domain.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 /home/www/web12/log/error.log
Alias /error/ "/home/www/web12/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 ^/~([^/]+)(/(.*))? /home/www/web12/user/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /home/www/web12/user/$1/web/$3
</VirtualHost>
#
#
#
falko
23rd February 2006, 00:04
And when you type www.domain.com in your browser, you still see the default Apache page?
Is it possible that you have installed Apache 1.3 and Apache 2 at the same time and that Apache 1.3 is running right now where Apache 2 should? Please post the output of netstat -tap
nok
23rd February 2006, 00:09
tcp 0 0 *:imaps *:* LISTEN 1010/couriertcpd
tcp 0 0 *:pop3s *:* LISTEN 1033/couriertcpd
tcp 0 0 *:mysql *:* LISTEN 1096/mysqld
tcp 0 0 *:netbios-ssn *:* LISTEN 1043/inetd
tcp 0 0 *:pop3 *:* LISTEN 1019/couriertcpd
tcp 0 0 *:imap2 *:* LISTEN 996/couriertcpd
tcp 0 0 *:www *:* LISTEN 26651/apache2
tcp 0 0 *:81 *:* LISTEN 1291/ispconfig_http
tcp 0 0 webserver:domain *:* LISTEN 26148/named
tcp 0 0 localhost:domain *:* LISTEN 26148/named
tcp 0 0 *:ftp *:* LISTEN 24638/proftpd: (acc
tcp 0 0 *:ssh *:* LISTEN 1252/sshd
tcp 0 0 localhost:953 *:* LISTEN 26148/named
tcp 0 0 *:smtp *:* LISTEN 26102/master
tcp 0 0 *:https *:* LISTEN 26651/apache2
nok
23rd February 2006, 00:18
/var/www
is the directory shown for all requests!!
________
SOUTH PARK DICUSSION (http://www.tv-gossip.com/south-park/)
________
Zx14 Vs Hayabusa (http://wiki.answers.com/Q/Which_bike_is_quicker_kawasaki_zx_-14_or_suzuki_hayabusa)
till
23rd February 2006, 00:22
Is "*ip*" an internet IP or a private IP? If its an Internet IP, dioes domain.com really points to that IP?
nok
23rd February 2006, 00:24
internet IP and domain.com is just an example but the domains im using all point to the correct IP!!
The /var/www page loads fine! Just not the Vhosts
________
ISLAM FORUMS (http://www.religionboard.org/islam/)
________
Lenya (http://www.girlcamfriend.com/cam/Lenya/)
falko
23rd February 2006, 08:09
Have a look at this thread: http://www.howtoforge.com/forums/showthread.php?t=144
nok
23rd February 2006, 21:40
That is what I have done, however all sites point to /var/www/index.html
www.domain1.com should goto /home/www/web1/web
www.domain2.com should goto /home/www/web2/web
www.domain3.com should goto /home/www/web3/web
and so on...
________
SUZUKI TS125 DUSTER (http://www.cyclechaos.com/wiki/Suzuki_TS125_DUSTER)
________
MARIJUANA DISPENSARIES IN (http://dispensaries.org)
falko
23rd February 2006, 22:12
Is it possible that you've installed two Apaches on your system, Apache 1.3 and Apache 2, and that you're trying to configure the wrong one?
nok
23rd February 2006, 22:17
i followed perfect Debian Sarge setup. only Apache2 installed from what i can see!
________
Free visa gift cards (http://bestfreegiftcard.com/visa-gift-cards/)
________
White Girls Webcam (http://www.girlcamfriend.com/webcam/white-girls/)
falko
24th February 2006, 12:39
Please post the output of ps aux and netstat -tap
nok
24th February 2006, 18:29
ps aux
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.1 1492 508 ? S Feb21 0:00 init [2]
root 2 0.0 0.0 0 0 ? S Feb21 0:00 [keventd]
root 3 0.0 0.0 0 0 ? SN Feb21 0:00 [ksoftirqd_CPU0]
root 4 0.0 0.0 0 0 ? S Feb21 0:00 [kswapd]
root 5 0.0 0.0 0 0 ? S Feb21 0:00 [bdflush]
root 6 0.0 0.0 0 0 ? S Feb21 0:00 [kupdated]
root 99 0.0 0.0 0 0 ? S Feb21 0:00 [kjournald]
root 236 0.0 0.0 0 0 ? S Feb21 0:00 [kjournald]
root 437 0.0 0.0 0 0 ? S Feb21 0:00 [khubd]
root 961 0.0 0.3 2244 776 ? Ss Feb21 0:00 /sbin/syslogd -a
root 964 0.0 0.5 2192 1360 ? Ss Feb21 0:00 /sbin/klogd
root 983 0.0 0.1 1656 460 ? S Feb21 0:00 /usr/sbin/courier
root 984 0.0 0.1 1796 504 ? S Feb21 0:00 /usr/lib/courier/
root 988 0.0 0.2 1984 664 ? S Feb21 0:00 /usr/lib/courier/
root 989 0.0 0.2 1984 664 ? S Feb21 0:00 /usr/lib/courier/
root 990 0.0 0.2 1984 664 ? S Feb21 0:00 /usr/lib/courier/
root 993 0.0 0.2 1984 664 ? S Feb21 0:00 /usr/lib/courier/
root 994 0.0 0.2 1984 664 ? S Feb21 0:00 /usr/lib/courier/
root 996 0.0 0.2 2464 744 ? S Feb21 0:00 /usr/sbin/courier
root 1000 0.0 0.1 1664 456 ? S Feb21 0:00 /usr/sbin/courier
root 1010 0.0 0.2 2464 740 ? S Feb21 0:00 /usr/sbin/courier
root 1014 0.0 0.1 1532 312 ? S Feb21 0:00 /usr/sbin/courier
root 1019 0.0 0.2 2464 744 ? S Feb21 0:00 /usr/sbin/courier
root 1022 0.0 0.1 1660 452 ? S Feb21 0:00 /usr/sbin/courier
root 1033 0.0 0.2 2464 740 ? S Feb21 0:00 /usr/sbin/courier
root 1037 0.0 0.1 1528 308 ? S Feb21 0:00 /usr/sbin/courier
root 1043 0.0 0.2 2220 728 ? Ss Feb21 0:00 /usr/sbin/inetd
root 1059 0.0 0.4 2492 1240 ? S Feb21 0:00 /bin/sh /usr/bin/
root 1095 0.0 0.4 2492 1244 ? S Feb21 0:00 /bin/sh /usr/bin/
mysql 1096 0.0 6.5 74140 16748 ? S Feb21 0:00 /usr/sbin/mysqld
root 1097 0.0 0.1 1476 488 ? S Feb21 0:00 logger -p daemon.
mysql 1098 0.0 6.5 74140 16748 ? S Feb21 0:00 /usr/sbin/mysqld
mysql 1099 0.0 6.5 74140 16748 ? S Feb21 0:00 /usr/sbin/mysqld
mysql 1100 0.0 6.5 74140 16748 ? S Feb21 0:00 /usr/sbin/mysqld
mysql 1101 0.0 6.5 74140 16748 ? S Feb21 0:00 /usr/sbin/mysqld
mysql 1102 0.0 6.5 74140 16748 ? S Feb21 0:00 /usr/sbin/mysqld
mysql 1103 0.0 6.5 74140 16748 ? S Feb21 0:00 /usr/sbin/mysqld
mysql 1104 0.0 6.5 74140 16748 ? S Feb21 0:00 /usr/sbin/mysqld
mysql 1105 0.0 6.5 74140 16748 ? S Feb21 0:00 /usr/sbin/mysqld
mysql 1106 0.0 6.5 74140 16748 ? S Feb21 0:00 /usr/sbin/mysqld
root 1239 0.0 0.7 5760 1964 ? Ss Feb21 0:00 /usr/sbin/nmbd -D
root 1242 0.0 0.6 6808 1588 ? Ss Feb21 0:00 /usr/sbin/saslaut
root 1243 0.0 0.6 6808 1588 ? S Feb21 0:00 /usr/sbin/saslaut
root 1244 0.0 0.6 6808 1588 ? S Feb21 0:00 /usr/sbin/saslaut
root 1245 0.0 0.6 6808 1588 ? S Feb21 0:00 /usr/sbin/saslaut
root 1246 0.0 0.6 6808 1588 ? S Feb21 0:00 /usr/sbin/saslaut
root 1252 0.0 0.6 3720 1552 ? Ss Feb21 0:00 /usr/sbin/sshd
daemon 1266 0.0 0.2 1672 636 ? Ss Feb21 0:00 /usr/sbin/atd
root 1269 0.0 0.3 1756 820 ? Ss Feb21 0:00 /usr/sbin/cron
root 1291 0.0 2.5 10720 6608 ? Ss Feb21 0:00 /root/ispconfig/h
root 1292 0.0 0.4 2468 1184 ? S Feb21 0:00 /bin/bash /root/i
admispc 1297 0.0 3.7 13216 9696 ? S Feb21 0:30 /root/ispconfig/h
admispc 1475 0.0 0.3 2492 912 ? Ss Feb21 0:00 /home/admispconfi
root 1481 0.0 0.1 1484 476 tty1 Ss+ Feb21 0:00 /sbin/getty 38400
root 1482 0.0 0.1 1484 476 tty2 Ss+ Feb21 0:00 /sbin/getty 38400
root 1483 0.0 0.1 1484 476 tty3 Ss+ Feb21 0:00 /sbin/getty 38400
root 1484 0.0 0.1 1484 476 tty4 Ss+ Feb21 0:00 /sbin/getty 38400
root 1485 0.0 0.1 1484 476 tty5 Ss+ Feb21 0:00 /sbin/getty 38400
root 1486 0.0 0.1 1484 476 tty6 Ss+ Feb21 0:00 /sbin/getty 38400
admispc 1499 0.0 3.5 12860 9176 ? S Feb21 0:31 /root/ispconfig/h
root 17674 0.0 3.8 23280 9976 ? Ss Feb23 0:07 /usr/sbin/apache2
bind 17803 0.0 1.0 11144 2684 ? Ss Feb23 0:00 /usr/sbin/named -
bind 17809 0.0 1.0 11144 2684 ? S Feb23 0:00 /usr/sbin/named -
bind 17810 0.0 1.0 11144 2684 ? S Feb23 0:00 /usr/sbin/named -
bind 17814 0.0 1.0 11144 2684 ? S Feb23 0:00 /usr/sbin/named -
bind 17815 0.0 1.0 11144 2684 ? S Feb23 0:00 /usr/sbin/named -
root 18364 0.0 0.1 1476 276 ? S Feb23 0:00 /root/ispconfig/c
www-data 18365 0.0 3.9 23416 10260 ? S Feb23 0:00 /usr/sbin/apache2
www-data 18366 0.0 3.9 23416 10256 ? S Feb23 0:00 /usr/sbin/apache2
www-data 18367 0.0 3.9 23416 10260 ? S Feb23 0:00 /usr/sbin/apache2
www-data 18368 0.0 3.9 23416 10260 ? S Feb23 0:00 /usr/sbin/apache2
www-data 18369 0.0 3.9 23416 10260 ? S Feb23 0:00 /usr/sbin/apache2
www-data 18385 0.0 3.9 23416 10264 ? S Feb23 0:00 /usr/sbin/apache2
nobody 18622 0.0 0.9 4848 2352 ? Ss Feb23 0:00 proftpd: (accepti
root 18739 0.0 0.5 3656 1328 ? Ss Feb23 0:00 /usr/lib/postfix/
postfix 18759 0.0 0.4 2996 1124 ? S Feb23 0:00 qmgr -l -t fifo -
postfix 31548 0.0 0.4 2964 1100 ? S 16:39 0:00 pickup -l -t fifo
root 32069 0.0 1.1 8408 2912 ? S 17:21 0:00 smbd
root 32120 0.0 0.8 7312 2232 ? Rs 17:25 0:00 sshd: root@pts/0
root 32124 0.0 0.8 7312 2232 ? S 17:25 0:00 sshd: root@pts/0
root 32128 0.0 0.6 3008 1652 pts/0 Ss 17:25 0:00 -bash
root 32135 0.0 0.1 2020 500 ? S 17:25 0:00 sleep 10
root 32136 0.0 0.3 2480 860 pts/0 R+ 17:25 0:00 ps aux
netstat -tap
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 *:imaps *:* LISTEN 1010/couriertcpd
tcp 0 0 *:pop3s *:* LISTEN 1033/couriertcpd
tcp 0 0 *:mysql *:* LISTEN 1096/mysqld
tcp 0 0 *:netbios-ssn *:* LISTEN 1043/inetd
tcp 0 0 *:pop3 *:* LISTEN 1019/couriertcpd
tcp 0 0 *:imap2 *:* LISTEN 996/couriertcpd
tcp 0 0 *:www *:* LISTEN 17674/apache2
tcp 0 0 *:81 *:* LISTEN 1291/ispconfig_http
tcp 0 0 *:ftp *:* LISTEN 18622/proftpd: (acc
tcp 0 0 webserver.websit:domain *:* LISTEN 17803/named
tcp 0 0 localhost.locald:domain *:* LISTEN 17803/named
tcp 0 0 *:ssh *:* LISTEN 1252/sshd
tcp 0 0 *:smtp *:* LISTEN 18739/master
tcp 0 0 localhost.localdoma:953 *:* LISTEN 17803/named
tcp 0 0 *:https *:* LISTEN 17674/apache2
falko
25th February 2006, 12:22
Looks ok. Anything in the Apache error log?
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.