View Full Version : ISPConfig multiple sites with dhcp cable
rdtech
18th March 2008, 07:44
I installed suse 10.3 with ISPconfig following the directions. I was wondering if it works with dynamic IP from my provider.
I was running one website fine but when I change it over to ISPconfig (in hopes of running more sites), I get an erro when I type in the webpage in the brower.
The error said that its a shared IP and I should type in the address and not the number.
Well I did type in the address and not the number IP.
Maybe it has something to do with zoneedit forwarding my domain name to my current dhcp ip address.
Please explain to me if its possible to run ISPconfig on my dhcp internet conneciton.
till
18th March 2008, 10:52
Please make sure that you use the internal IP for the website and not the external IP.
rdtech
19th March 2008, 01:20
My internal IP was used. 192.168.1.100 (which points to my server)static within the network but my ISP is dynamic using zoneedit to update current ISP IP.
Ben
19th March 2008, 09:07
And if you access via any dns-name, mapping to your external IP, everything should work fine.
How exactly do you access your site then?
rdtech
19th March 2008, 16:59
okay so I have my site on the main directory for apache to pull. This only worked for one site. I use yahoo.com to register my domain name. I then point yahoo to zoneedit's dns server because I'm using zoneedit to update my dynamic IP address(because my interenet provider does not have static IP for residential)
This has been working for about 3 years now.
Now I want to add another website to my server and possible more so I followed the how to setup for Suse 10.3 the perfect setup.
Everything installed as it should. I also opened up more ports in the router to ensure that I can access the server.
Now I'm basically stuck. When i put in my address, (eg. www.testserver.com) it goes to my server and it says that this is a shared IP and I should enter in the website I"m looking for.
I'm not sure If I need to setup up a cname and a record and/or MX record. If there a how on setting up all of this in ispconfig and making it work with my dhcp ISP?
I know it works on static IPs but I haven't heard people here talk much about ISPconfig working witha dynamic ISP.
Please advise.
falko
20th March 2008, 15:56
What'S in Vhosts_ispconfig.conf, and what's the output of ifconfig?
rdtech
20th March 2008, 17:05
I'll post that info when I get home.
rdtech
21st March 2008, 02:53
okay so here is the info for ifconfig
rdtechwebserver:/home/Admin # ifconfig
eth0 Link encap:Ethernet HWaddr 00:04:76:B9:30:57
inet addr:192.168.1.100 Bcast:255.255.255.255 Mask:255.255.255.0
inet6 addr: fe80::204:76ff:feb9:3057/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3462 errors:0 dropped:0 overruns:1 frame:0
TX packets:2985 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3029617 (2.8 Mb) TX bytes:352362 (344.1 Kb)
Interrupt:19 Base address:0xe000
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:80 errors:0 dropped:0 overruns:0 frame:0
TX packets:80 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:7116 (6.9 Kb) TX bytes:7116 (6.9 Kb)
rdtech
21st March 2008, 03:17
Here is the Vhost_ispconfig.conf file
Please advise me if everything looks okay.
###################################
#
# ISPConfig vHost Configuration File
# Version 1.0
#
###################################
#
NameVirtualHost 192.168.1.100:80
<VirtualHost 192.168.1.100:80>
ServerName localhost
ServerAdmin root@localhost
DocumentRoot /var/www/sharedip
</VirtualHost>
#
#
######################################
# Vhost: www.rdtech-online.com:80
######################################
#
#
<VirtualHost 192.168.1.1:80>
ServerName www.rdtech-online.com:80
ServerAdmin webmaster@rdtech-online.com
DocumentRoot /srv/www/web1/web
ServerAlias rdtech-online.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
Alias /cgi-bin/ /srv/www/web1/cgi-bin/
AddHandler cgi-script .cgi
AddHandler cgi-script .pl
ErrorLog /srv/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 /srv/www/web1/
php_admin_value file_uploads 1
php_admin_value upload_tmp_dir /srv/www/web1/phptmp/
php_admin_value session.save_path /srv/www/web1/phptmp/
<IfModule mod_ruby.c>
<Directory /srv/www/web1/web>
Options +ExecCGI
</Directory>
RubyRequire apache/ruby-run
#RubySafeLevel 0
<Files *.rb>
SetHandler ruby-object
RubyHandler Apache::RubyRun.instance
</Files>
<Files *.rbx>
SetHandler ruby-object
RubyHandler Apache::RubyRun.instance
</Files>
</IfModule>
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
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/ "/srv/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 ^/~([^/]+)(/(.*))? /srv/www/web1/user/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /srv/www/web1/user/$1/web/$3
</VirtualHost>
#
#
#
rdtech
21st March 2008, 03:31
Any Ideas?
daveb
21st March 2008, 06:21
not sure if this is a typo or the way it was posted or incorrect.
# Version 1.0
#
###################################
#
NameVirtualHost 192.168.1.100:80
<VirtualHost 192.168.1.100:80>
# Vhost: www.rdtech-online.com:80
######################################
#
#
<VirtualHost 192.168.1.1:80>
the ips dont match.
rdtech
21st March 2008, 07:07
Are they suppose to match? the files were copied and pasted from the server verbatim.
192.168.1.1 is pointing to my router while 192.168.1.100 is my server ip
Should they both be pointing to the router or my server?
i left the test server running. www.rdtech-online.com
I get the shared IP error.
daveb
21st March 2008, 07:12
yes, unless you have more then 1 ip for your server. and from your ifconfig on your other post 192.168.1.100 is the only ip for your server.
rdtech
21st March 2008, 07:47
well i think its working now.
I dont know how but its working. When I type the external IP, I get the "error" Its a share IP.
Now when I enter in the website, I get the index page.
Great.
I still need help understanding cname, mx record, a record.
daveb
21st March 2008, 07:56
When I type the external IP, I get the "error" Its a share IP
Thats normal as its namebased shared hosting.
I still need help understanding cname, mx record, a record.
You can google for more but this might give you basic examples. http://www.google.com/support/a/bin/answer.py?hl=en&answer=48090
rdtech
21st March 2008, 08:17
thanks for the help. I appreciate it.
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.