View Full Version : how can I set several IPs for one domain?
freesqrt
19th June 2008, 09:06
Hello,
I set a valid IP for my domain. now I need to set an invalid one for internal users. I set it and set a "www" DNS record to point to this IP. But when I enter www.mydomain.com, I get
"his IP address is shared. For access to the web site which you look for, enter its address instead of its IP."
error.
by typint "mydomain.com" (without www prefix) it works properly.
What is wrong?
falko
20th June 2008, 14:07
What's in Vhosts_ispconfig.conf, and what's the output of ifconfig?
freesqrt
21st June 2008, 07:19
Dear Falko,
part of Vhosts_ispconfig.conf contains:
###################################
#
# ISPConfig vHost Configuration File
# Version 1.0
#
###################################
#
NameVirtualHost 10.0.0.1:80
<VirtualHost 10.0.0.1:80>
ServerName localhost
ServerAdmin root@localhost
DocumentRoot /var/www/sharedip
</VirtualHost>
NameVirtualHost 80.1.1.27:80
<VirtualHost 80.1.1.27:80>
ServerName localhost
ServerAdmin root@localhost
DocumentRoot /var/www/sharedip
</VirtualHost>
#
#
#
#
#
######################################
# Vhost: www.mydomain.com:80
######################################
#
#
<VirtualHost 80.1.1.27:80>
ServerName www.mydomain.com:80
ServerAdmin webmaster@mydomain.com
DocumentRoot /home/web2/web
ServerAlias mydomain.com
DirectoryIndex welcome.php index.php 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/ /home/web2/cgi-bin/
AddHandler cgi-script .cgi
AddHandler cgi-script .pl
ErrorLog /home/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 Off
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
Alias /error/ "/home/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 ^/~([^/]+)(/(.*))? /home/web2/user/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /home/web2/user/$1/web/$3
</VirtualHost>
#
#
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ $$$$$$$$$$$$$$$
inaddition I added invalid IP (10.0.0.1) so ifconfig shows:
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
eth0 Link encap:Ethernet HWaddr 00:18:FE:FE:7D:EC
inet addr:85.185.67.253 Bcast:80.1.1.27 Mask:255.255.255.192
inet6 addr: fe80::218:feff:fefe:7dec/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:54741170 errors:0 dropped:0 overruns:0 frame:0
TX packets:16181065 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:10370595 (9.8 MiB) TX bytes:2683348748 (2.4 GiB)
Interrupt:16 Memory:f8000000-f8012100
eth0:1 Link encap:Ethernet HWaddr 00:18:FE:FE:7D:EC
inet addr:10.0.0.1 Bcast:10.0.15.255 Mask:255.255.240.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:16 Memory:f8000000-f8012100
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:1165899 errors:0 dropped:0 overruns:0 frame:0
TX packets:1165899 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:906691076 (864.6 MiB) TX bytes:906691076 (864.6 MiB)
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
Any idea?
falko
21st June 2008, 11:44
The directive
NameVirtualHost 80.1.1.27:80
is missing. Add 80.1.1.27 under Management > Server > Settings.
freesqrt
21st June 2008, 13:06
I dded 80.1.1.27 in "IP Address" field and 10.0.0.1 in "IP List" box.
This directive "NameVirtualHost 80.1.1.27:80" has been set in
###################################
#
# ISPConfig vHost Configuration File
# Version 1.0
#
###################################
#
NameVirtualHost 10.0.0.1:80
<VirtualHost 10.0.0.1:80>
ServerName localhost
ServerAdmin root@localhost
DocumentRoot /var/www/sharedip
</VirtualHost>
NameVirtualHost 80.1.1.27:80
<VirtualHost 80.1.1.27:80>
ServerName localhost
ServerAdmin root@localhost
DocumentRoot /var/www/sharedip
</VirtualHost>
Should I put 80.1.1.27 in "IP List"?
falko
22nd June 2008, 14:46
Should I put 80.1.1.27 in "IP List"?
No, that's not necessary.
clubV
19th July 2008, 10:06
i really dont understand the coding, but i do have a question, say for example like Yahoo. yahoo have several servers all over the world and it manages all the servers in a single domain that is yahoo.com or yahoo.co.in. what does it do on the server site to manage the mail comming to the different-2 servers at the same domain name yahoo.com?
John
falko
20th July 2008, 13:33
They have multiple MX records that direct the emails to their various servers.
freesqrt
4th January 2009, 16:43
Dear Falko,
based on previous talks, can I make a new "mydomain.com" site with IP 10.0.0.1 for internal users?
Raegards,
archerjd
4th January 2009, 21:06
In ISPC2 websites must be configured for one address or another not both. Apache has the ability to do this but that would require Apache and the site to listen on all addresses. If you were to change these settings manually then the next time you make a change in ISPC2 your changes would be over written.
If what you are trying to accomplish is to have access to the website that has a public address from your private network then this is a function of your firewall/router not the web server.
The example below shows a small map of data flow and the path that your connections would make.
Private network | Firewall/router | Public network | ISPC Webserver
10.0.0.24 --> 10.0.0.1/1.1.1.1 --> 1.1.1.1 --> 1.1.1.2
In all accounts the above example should work.
Can you show us how you have configured your server using the example above?
No real addresses please.
freesqrt
5th January 2009, 06:29
Dear archerjd,
my network flow is like this:
client | corespondent VLAN | servers VLAN | ISPConfig
192.168.1.54 --> 192.168.1.1 -- > 10.1.1.1 --> 10.1.1.25
the problem is that I get "Shared IP" message from ISPConfig itself. it means no router or firewall is in to prevents.
I think ISPConfig does not understand both IPs for my domain!!!
Thank you so much,
falko
5th January 2009, 10:46
What's the output of ifconfig, and what's in Vhosts_ispconfig.conf?
freesqrt
5th January 2009, 14:05
Dear Falko,
The outpou is:
> ifconfig
eth0 Link encap:Ethernet HWaddr 00:18:FE:FE:7D:EC
inet addr:80.1.1.27 Bcast:80.1.1.255 Mask:255.255.255.192
inet6 addr: fe80::218:feff:fefe:7dec/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1096481 errors:0 dropped:0 overruns:0 frame:0
TX packets:1173520 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:173923506 (165.8 MiB) TX bytes:680313681 (648.7 MiB)
Interrupt:16 Memory:f8000000-f8012100
eth0:1 Link encap:Ethernet HWaddr 00:18:FE:FE:7D:EC
inet addr:192.168.10.11 Bcast:192.168.10.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:16 Memory:f8000000-f8012100
eth1 Link encap:Ethernet HWaddr 00:18:FE:FE:7D:EE
inet addr:10.1.1.25 Bcast:10.1.123.255 Mask:255.255.224.0
inet6 addr: fe80::218:feff:fefe:7dee/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:150122 errors:0 dropped:0 overruns:0 frame:0
TX packets:4020 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:10547649 (10.0 MiB) TX bytes:383646 (374.6 KiB)
Interrupt:17 Memory:fa000000-fa012100
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:2739352 errors:0 dropped:0 overruns:0 frame:0
TX packets:2739352 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1494515293 (1.3 GiB) TX bytes:1494515293 (1.3 GiB)
and
]> cat /etc/httpd/conf/vhosts/Vhosts_ispconfig.conf
###################################
#
# ISPConfig vHost Configuration File
# Version 1.0
#
###################################
#
NameVirtualHost 10.1.1.25:80
<VirtualHost 10.1.1.25:80>
ServerName localhost
ServerAdmin root@localhost
DocumentRoot /var/www/sharedip
</VirtualHost>
NameVirtualHost 80.1.1.27:80
<VirtualHost 80.1.1.27:80>
ServerName localhost
ServerAdmin root@localhost
DocumentRoot /var/www/sharedip
</VirtualHost>
#
#
######################################
# Vhost: www.tus.com:80
######################################
#
#
<VirtualHost 80.1.1.27:80>
ServerName www.tus.com:80
ServerAdmin webmaster@tus.com
DocumentRoot /home/web3/web
ServerAlias tus.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/ /home/web3/cgi-bin/
AddHandler cgi-script .cgi
AddHandler cgi-script .pl
ErrorLog /home/web3/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 Off
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
Alias /error/ "/home/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 ^/~([^/]+)(/(.*))? /home/web3/user/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /home/web3/user/$1/web/$3
</VirtualHost>
#
#
#
######################################
# Vhost: www.mydomain.com:80
######################################
#
#
<VirtualHost 80.1.1.27:80>
ServerName www.mydomain.com:80
ServerAdmin webmaster@mydomain.com
DocumentRoot /home/web2/web
ServerAlias mydomain.com monitor.mydomain.com
DirectoryIndex welcome.php index.php 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/ /home/web2/cgi-bin/
AddHandler cgi-script .cgi
AddHandler cgi-script .pl
ErrorLog /home/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 Off
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
Alias /error/ "/home/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 ^/~([^/]+)(/(.*))? /home/web2/user/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /home/web2/user/$1/web/$3
</VirtualHost>
#
#
#
######################################
# Vhost: www.mech.tus.com:80
######################################
#
#
<VirtualHost 80.1.1.27:80>
ServerName www.mech.tus.com:80
ServerAdmin webmaster@mech.tus.com
DocumentRoot /home/web7/web
ServerAlias mech.tus.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/web7/log/error.log
Alias /error/ "/home/web7/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/web7/user/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /home/web7/user/$1/web/$3
</VirtualHost>
#
#
#
######################################
# Vhost: www.mine.tus.com:80
######################################
#
#
<VirtualHost 80.1.1.27:80>
ServerName www.mine.tus.com:80
ServerAdmin webmaster@mine.tus.com
DocumentRoot /home/web6/web
ServerAlias mine.tus.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/web6/log/error.log
Alias /error/ "/home/web6/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/web6/user/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /home/web6/user/$1/web/$3
</VirtualHost>
#
#
#
######################################
# Vhost: www.elec.tus.com:80
######################################
#
#
<VirtualHost 80.1.1.27:80>
ServerName www.elec.tus.com:80
ServerAdmin webmaster@elec.tus.com
DocumentRoot /home/web18/web
ServerAlias elec.tus.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/web18/log/error.log
Alias /error/ "/home/web18/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/web18/user/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /home/web18/user/$1/web/$3
</VirtualHost>
#
#
#
######################################
# Vhost: www.chem.tus.com:80
######################################
#
#
<VirtualHost 80.1.1.27:80>
ServerName www.chem.tus.com:80
ServerAdmin webmaster@chem.tus.com
DocumentRoot /home/web9/web
ServerAlias chem.tus.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/web9/log/error.log
Alias /error/ "/home/web9/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/web9/user/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /home/web9/user/$1/web/$3
</VirtualHost>
#
#
#
######################################
# Vhost: www.geo.tus.com:80
######################################
#
#
<VirtualHost 80.1.1.27:80>
ServerName www.geo.tus.com:80
ServerAdmin webmaster@geo.tus.com
DocumentRoot /home/web10/web
ServerAlias geo.tus.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/web10/log/error.log
Alias /error/ "/home/web10/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/web10/user/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /home/web10/user/$1/web/$3
</VirtualHost>
#
#
#
######################################
# Vhost: www.civil.tus.com:80
######################################
#
#
<VirtualHost 80.1.1.27:80>
ServerName www.civil.tus.com:80
ServerAdmin webmaster@civil.tus.com
DocumentRoot /home/web11/web
ServerAlias civil.tus.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/web11/log/error.log
Alias /error/ "/home/web11/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/web11/user/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /home/web11/user/$1/web/$3
</VirtualHost>
#
#
#
######################################
# Vhost: www.math.tus.com:80
######################################
#
#
<VirtualHost 80.1.1.27:80>
ServerName www.math.tus.com:80
ServerAdmin webmaster@math.tus.com
DocumentRoot /home/web12/web
ServerAlias math.tus.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/web12/log/error.log
Alias /error/ "/home/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/web12/user/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /home/web12/user/$1/web/$3
</VirtualHost>
#
#
#
######################################
# Vhost: www.agri.tus.com:80
######################################
#
#
<VirtualHost 80.1.1.27:80>
ServerName www.agri.tus.com:80
ServerAdmin webmaster@agri.tus.com
DocumentRoot /home/web13/web
ServerAlias agri.tus.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/web13/log/error.log
Alias /error/ "/home/web13/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/web13/user/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /home/web13/user/$1/web/$3
</VirtualHost>
#
#
#
######################################
# Vhost: www.phys.tus.com:80
######################################
#
#
<VirtualHost 80.1.1.27:80>
ServerName www.phys.tus.com:80
ServerAdmin webmaster@phys.tus.com
DocumentRoot /home/web14/web
ServerAlias phys.tus.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/web14/log/error.log
Alias /error/ "/home/web14/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/web14/user/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /home/web14/user/$1/web/$3
</VirtualHost>
#
#
#
######################################
# Vhost: www.mang.tus.com:80
######################################
#
#
<VirtualHost 80.1.1.27:80>
ServerName www.mang.tus.com:80
ServerAdmin webmaster@mang.tus.com
DocumentRoot /home/web15/web
ServerAlias mang.tus.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/web15/log/error.log
Alias /error/ "/home/web15/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/web15/user/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /home/web15/user/$1/web/$3
</VirtualHost>
#
#
#
######################################
# Vhost: www.comp.tus.com:80
######################################
#
#
<VirtualHost 80.1.1.27:80>
ServerName www.comp.tus.com:80
ServerAdmin webmaster@comp.tus.com
DocumentRoot /home/web28/web
ServerAlias comp.tus.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/web28/log/error.log
Alias /error/ "/home/web28/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/web28/user/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /home/web28/user/$1/web/$3
</VirtualHost>
#
#
#
######################################
# Vhost: www.sstp.ir:80
######################################
#
#
<VirtualHost 80.1.1.27:80>
ServerName www.sstp.ir:80
ServerAdmin webmaster@sstp.ir
DocumentRoot /home/web37/web
ServerAlias sstp.ir
DirectoryIndex index.php index.php5 index.php4 index.php3 index.shtml index.cgi index.pl index.jsp Default.htm default.htm
Alias /cgi-bin/ /home/web37/cgi-bin/
AddHandler cgi-script .cgi
AddHandler cgi-script .pl
ErrorLog /home/web37/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 /home/web37/
php_admin_value file_uploads 1
php_admin_value upload_tmp_dir /home/web37/phptmp/
php_admin_value session.save_path /home/web37/phptmp/
Alias /error/ "/home/web37/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/web37/user/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /home/web37/user/$1/web/$3
</VirtualHost>
#
#
#
Have you any idea from the problem?
Regards,
archerjd
6th January 2009, 02:52
I think ISPConfig does not understand both IPs for my domain!!!
Yes you're right, you have to add the address 10.1.1.25 to ISPConfig and then change the private site to that address.
You can do that by following the steps:
1. Logon to ISPConfig and go to the Management tab.
2. Go to Server and then Settings
3. Add the new IP (10.1.1.25) in the IP list and click Save.
4. Go back to the ISP Manager tab and locate your website.
5. In your website, click the IP Address drop down menu and select the new IP and click Save.
When ISPConfig updates Apache then your new website will be accessible inside the network. One note of caution though. you don't want the private site's DNS to display the private address to the public. The less hackers know about your network the better.
-Archer
freesqrt
10th January 2009, 07:45
Dear Archer,
By this solution my site will not be accessible from the internet.
I want to set both IPs on it.
Regards,
falko
11th January 2009, 14:57
Does your router forward port 80 to 10.1.1.25?
freesqrt
11th January 2009, 17:38
No,
What you mean by forwarding port 80 on 10.1.1.25?
I should route the traffic to the web server statically?
Regards,
falko
12th January 2009, 15:22
You must log in to your router and configure it to forward port 80 (HTTP) to 10.1.1.25.
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.