Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 20th November 2005, 15:23
MarcoV MarcoV is offline
Junior Member
 
Join Date: Nov 2005
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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

Last edited by MarcoV; 20th November 2005 at 15:34.
Reply With Quote
Sponsored Links
  #2  
Old 20th November 2005, 15:38
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

Please post the output of
Code:
ifconfig
What's the IP address in
Quote:
<VirtualHost *.*.*.*:80>
in your Vhosts_ispconfig.conf?
__________________
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 20th November 2005, 15:47
MarcoV MarcoV is offline
Junior Member
 
Join Date: Nov 2005
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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>
Reply With Quote
  #4  
Old 20th November 2005, 18:48
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

www.marcod.net seems to be working now... Did you find the problem?
__________________
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
  #5  
Old 20th November 2005, 18:56
MarcoV MarcoV is offline
Junior Member
 
Join Date: Nov 2005
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

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

Last edited by MarcoV; 20th November 2005 at 19:01.
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
Email sent to domain being rejected Lil'Brudder Installation/Configuration 9 25th October 2005 11:17
FTP access problem... ctroyp General 7 12th October 2005 17:07
postfix config jmroth Installation/Configuration 6 18th September 2005 15:58
Installation problem: PHP problem? hgoor Installation/Configuration 7 21st August 2005 22:15
Bind stops and cannot be restarted after a slave domain is added jason Installation/Configuration 20 19th August 2005 08:16


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


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