PDA

View Full Version : problem creating anew site.


resnostyle
13th September 2006, 21:56
i have created a new site and when i enter the my address i get a page that says use the address and not the ip. i am not sure what i am doing wrong....

till
14th September 2006, 10:23
You must set the correct IP in the website settings, when you are behind a router, the correct IP is your internal IP.

resnostyle
14th September 2006, 19:16
You must set the correct IP in the website settings, when you are behind a router, the correct IP is your internal IP.

what is this usually under? i see several places where ip address can go.

aslo i am not behind a router, when i run ifconfig i get to address one is inet addr and the other is bcast. should i use the bcast?

falko
14th September 2006, 21:34
What's the output of ifconfig? What's in your Vhosts_ispconfig.conf?

resnostyle
14th September 2006, 21:39
eth0 Link encap:Ethernet HWaddr 00:E0:29:1B:4A:16
inet addr:204.94.101.XXX Bcast:204.94.101.XXX Mask:255.255.255.128
inet6 addr: fe80::2e0:29ff:fe1b:4a16/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:531910 errors:0 dropped:0 overruns:0 frame:0
TX packets:21171 errors:0 dropped:0 overruns:0 carrier:0
collisions:4349 txqueuelen:1000
RX bytes:117982094 (112.5 MiB) TX bytes:14553000 (13.8 MiB)
Interrupt:9 Base address:0x1000

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

whats the directory for the vhosts folder?

falko
15th September 2006, 10:55
whats the directory for the vhosts folder?
It depends on your distribution. Normally it's /etc/apache2/vhosts or /etc/httpd/vhosts or something like that. You can search for it:
updatedb
locate Vhosts_ispconfig.conf

resnostyle
15th September 2006, 23:44
It depends on your distribution. Normally it's /etc/apache2/vhosts or /etc/httpd/vhosts or something like that. You can search for it:
updatedb
locate Vhosts_ispconfig.conf

when i issued the command i got

###################################
#
# ISPConfig vHost Configuration File
# Version 1.0
#
###################################
#
NameVirtualHost 204.94.101.1xx:80
<VirtualHost 204.94.101.1xx:80>
ServerName localhost
ServerAdmin root@localhost
DocumentRoot /var/www/sharedip
</VirtualHost>
NameVirtualHost 204.94.101.1xx:80
<VirtualHost 204.94.101.1xx:80>
ServerName localhost
ServerAdmin root@localhost
DocumentRoot /var/www/sharedip
</VirtualHost>
#
#
######################################
# Vhost: www.visualadditions.co.nr/:80
######################################
#
#
<VirtualHost 204.94.101.1xx:80>
ServerName www.visualadditions.co.nr/:80
ServerAdmin webmaster@visualadditions.co.nr/
DocumentRoot /var/www/web18/web
ServerAlias visualadditions.co.nr/
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/web18/cgi-bin/
AddHandler cgi-script .cgi
AddHandler cgi-script .pl
ErrorLog /var/www/web18/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/web18/
php_admin_value file_uploads 1
php_admin_value upload_tmp_dir /var/www/web18/phptmp/
php_admin_value session.save_path /var/www/web18/phptmp/


all the x's are the same address...

till
16th September 2006, 13:16
Please remove the / at the end of the domain name in the ISPConfig website settings. You must enter "visualadditions.co.nr" in the domain field and not "visualadditions.co.nr/".

resnostyle
21st September 2006, 04:56
made changes and still unable to access page...
*I AM NOW BEHIND A ROUTER! * is this configed right?

###################################
#
# ISPConfig vHost Configuration File
# Version 1.0
#
###################################
#
NameVirtualHost 192.168.1.x:80
<VirtualHost 192.168.1.x:80>
ServerName localhost
ServerAdmin root@localhost
DocumentRoot /var/www/sharedip
</VirtualHost>
#
#
######################################
# Vhost: www.visualadditions.co.nr:80
######################################
#
#
<VirtualHost 192.168.1.x:80>
ServerName www.visualadditions.co.nr:80
ServerAdmin webmaster@visualadditions.co.nr
DocumentRoot /var/www/web18/web
ServerAlias visualadditions.co.nr
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/web18/cgi-bin/
AddHandler cgi-script .cgi
AddHandler cgi-script .pl
ErrorLog /var/www/web18/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/web18/
php_admin_value file_uploads 1
php_admin_value upload_tmp_dir /var/www/web18/phptmp/
php_admin_value session.save_path /var/www/web18/phptmp/
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

till
21st September 2006, 12:21
This looks fine.

And you are sure that the domain www.visualadditions.co.nr is pointing to your routers external IP address and you forwarded port 80 and 443 from the router to the IP used in the vhost file. Have you tested this from outside your local network?

resnostyle
21st September 2006, 18:41
for some reason i cant test it from my network... if you would like i can give you client access so you can take a look. im at the point of giving up and installing something simpler.

till
22nd September 2006, 10:45
The current problem seems to be with your router, so another software wont help you.

Is the external IP of your router 204.94.101.45 ?

resnostyle
22nd September 2006, 15:27
yes it its

resnostyle
22nd September 2006, 19:07
i have reconfigured my router and it now allows access... but i still get the shared ip message.

till
22nd September 2006, 19:12
I dont get a timeout when i try to open http://www.visualadditions.co.nr/ in my webbrowser, so your router still seems to be configured wrong.

resnostyle
22nd September 2006, 19:13
ok give me asec.. and i will turn the server on..

till
22nd September 2006, 19:19
Ok, now I get the shared IP page too.

Please double check that you redirected port 80 on your router to the exact same internal IP address that is shown in the settings of the website visualadditions.co.nr in ISPConfig.

resnostyle
22nd September 2006, 19:29
i think i will just install ubuntu lamp server... because i can not figure this out... thats why the server didnt respond before, i was starting the installtion on another drive. do you want to check my files for me? i will give you login...

falko
23rd September 2006, 16:01
Please make sure that the IP addresses you see in Vhosts_ispconfig.conf are the ones you see in your ifconfig output!

resnostyle
23rd September 2006, 18:28
yep..

###################################
#
# ISPConfig vHost Configuration File
# Version 1.0
#
###################################
#
NameVirtualHost 192.168.1.x:80
<VirtualHost 192.168.1.x:80>
ServerName localhost
ServerAdmin root@localhost
DocumentRoot /var/www/sharedip
</VirtualHost>
#
#
######################################
# Vhost: www.visualadditions.co.nr:80
######################################
#
#
<VirtualHost 192.168.1.x:80>
ServerName www.visualadditions.co.nr:80
ServerAdmin webmaster@visualadditions.co.nr
DocumentRoot /var/www/web18/web
ServerAlias visualadditions.co.nr
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/web18/cgi-bin/
AddHandler cgi-script .cgi
AddHandler cgi-script .pl
ErrorLog /var/www/web18/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/web18/
php_admin_value file_uploads 1
php_admin_value upload_tmp_dir /var/www/web18/phptmp/
php_admin_value session.save_path /var/www/web18/phptmp/
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/ "/var/www/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 ^/~([^/]+)(/(.*))? /var/www/web18/user/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /var/www/web18/user/$1/web/$3
RewriteEngine on
RewriteCond %{HTTP_HOST} ^visualadditions\.co\.nr [NC]
RewriteRule ^/(.*)$ http://www.visualadditions.co.nr/va.selfip.com/$1 [R]
</VirtualHost>
#
#
#


see anything wrong?

falko
24th September 2006, 15:35
Ok, now I get it: www.visualadditions.co.nr is pointing to 82.146.34.249:

dig www.visualadditions.co.nr

; <<>> DiG 9.2.4 <<>> www.visualadditions.co.nr
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 15620
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;www.visualadditions.co.nr. IN A

;; ANSWER SECTION:
www.visualadditions.co.nr. 3600 IN A 82.146.34.249

;; Query time: 18 msec
;; SERVER: 213.133.98.97#53(213.133.98.97)
;; WHEN: Sun Sep 24 14:32:42 2006
;; MSG SIZE rcvd: 59However, when I visit that link in my browser, it shows 204.94.101.45 in my browser's status bar. So I guess you somehow redirected the domain to 204.94.101.45 (with a HTTP redirect?) instead of changing its A record. Its A record must point to 204.94.101.45 instead of 82.146.34.249!

resnostyle
24th September 2006, 17:20
ok so where do i change the "A" record?

falko
25th September 2006, 14:24
The authoritative name server is ns1.redirect.com.ru, so you must change it there:

dig ns visualadditions.co.nr

; <<>> DiG 9.2.1 <<>> ns visualadditions.co.nr
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 26529
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;visualadditions.co.nr. IN NS

;; AUTHORITY SECTION:
co.nr. 3600 IN SOA ns1.redirect.com.ru. abuse.co.nr. 2006052943 10800 3600 604800 86400

;; Query time: 39 msec
;; SERVER: 81.169.163.104#53(81.169.163.104)
;; WHEN: Mon Sep 25 13:22:59 2006
;; MSG SIZE rcvd: 100

resnostyle
25th September 2006, 14:49
i enter that on dns?

falko
26th September 2006, 18:38
You must contact the owner of ns1.redirect.com.ru and ask him to change your DNS records. Maybe this server belongs to your ISP? Maybe they even have a web interface where you can do the changes yourself.

resnostyle
26th September 2006, 18:40
do you know where this server is? could changing my domain fix it? or is this with my isp?

i am using a free domain service.

falko
27th September 2006, 21:42
do you know where this server is?
No, it must be related to one of the services you use (your web hoster maybe, or your domain registrar,...).

resnostyle
28th September 2006, 08:59
what do i put in for name server? maybe thats wrong...

falko
29th September 2006, 14:56
No, the DNS server is ns1.redirect.com.ru. You can ask your registrar to change it to another name server.