HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   General (http://www.howtoforge.com/forums/forumdisplay.php?f=15)
-   -   Problem with virual domain (http://www.howtoforge.com/forums/showthread.php?t=1333)

MarcoV 20th November 2005 15:23

Problem with virual domain
 
So i setup my server with the perfect setup debian sarge.
During the install I used my domain name and my external ip.
i entered my domain name (marcod.net) where you entered example.com

my /etc/hosts file looks like this:

127.0.0.1 localhost.localdomain localhost marcod
85.*.*.* marcod.net marcod
10.0.0.1 server.lan server

# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

With the configuration of ispconfig i typed in the following:

Please enter the IP address of the ISPConfig web: entered.my.internet ip.here
Please enter the host name: www
Please enter the domain: marcod.net

In ispconfig i added a vhost for www.marcod.net with all the options that i need checked.
The map www.marcod.net was created, and when i surf to www.marcod.net (with IE6 and a proxy because otherwise i can't get to my domain) i get the
/var/www directory and not the directorie which was created by ispconfig which is /var/www/www.marcod.net
also when is surf to www.marcod.net/www.marcod.net/web/index.php ie wants to download the .php files, but i did checked allow php scripts when i created the site.

the virtual hosts files:
###################################
#
# ISPConfig vHost Configuration File
# Version 1.0
#
###################################
#
NameVirtualHost *.*.*.*:80
<VirtualHost *.*.*.*:80>
ServerName localhost
ServerAdmin root@localhost
DocumentRoot /var/www/sharedip
</VirtualHost>
#
#
######################################
# Vhost: www.marcod.net:80
######################################
#
#
<VirtualHost *.*.*.*:80>
SuexecUserGroup web1_marcod web1
ServerName www.marcod.net:80
ServerAdmin webmaster@marcod.net
DocumentRoot /var/www/web1/web
ServerAlias www.marcod.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/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
AliasMatch ^/~([^/]+)(/(.*))? /var/www/web1/user/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /var/www/web1/user/$1/web/$3
</VirtualHost>
#
I also did some reboots but that doesn't seem to help either
The perl scripts won't work either i also see the source, i used the files from you're testfiles you have in the sticky.
Can someone please help me

falko 20th November 2005 15:38

Please post the output of
Code:

ifconfig
What's the IP address in
Quote:

<VirtualHost *.*.*.*:80>
in your Vhosts_ispconfig.conf?

MarcoV 20th November 2005 15:47

Out put of ifconfig:
marcod:~# ifconfig
eth0 Link encap:Ethernet HWaddr 00:40:F4:B3:F5:99
inet addr:10.0.0.1 Bcast:10.0.0.0 Mask:255.255.255.0
inet6 addr: fe80::240:f4ff:feb3:f599/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:10145 errors:0 dropped:0 overruns:0 frame:0
TX packets:9268 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1549903 (1.4 MiB) TX bytes:3721935 (3.5 MiB)
Interrupt:10 Base address:0xd800

eth0:0 Link encap:Ethernet HWaddr 00:40:F4:B3:F5:99
inet addr:85.144.248.78 Bcast:85.255.255.255 Mask:255.255.252.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:10 Base address:0xd800

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:655 errors:0 dropped:0 overruns:0 frame:0
TX packets:655 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:51440 (50.2 KiB) TX bytes:51440 (50.2 KiB)

And the ip adress
<VirtualHost 85.144.248.78:80>

falko 20th November 2005 18:48

www.marcod.net seems to be working now... Did you find the problem?

MarcoV 20th November 2005 18:56

Quote:

Originally Posted by falko
www.marcod.net seems to be working now... Did you find the problem?

no i only changed the documentroot in the vhost file to /var/www/web1/web/, changed it back now


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

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