HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=16)
-   -   ISP Blocking port 80 (http://www.howtoforge.com/forums/showthread.php?t=9230)

badgerbox76 20th December 2006 14:37

ISP Blocking port 80
 
I am trying to get ispconfig setup to run on port 8080 because that port is open. How can i set up ispconfig to take the dns request mwavestruecombat.homelinux.com:8080 to the proper directory.

till 20th December 2006 18:09

The port is not related to DNS.

Does mwavestruecombat.homelinux.com point to your IP address?

if yes, chnage the port in /root/ispconfig/httpd/conf/httpd.conf from 81 to 8080. The best way is to change all occurrences of 81 to 8080 and then restart the ISPConfig server.

badgerbox76 20th December 2006 19:23

Ok here is what i did.

I added Listen 8080 to httpd.conf in /root/ispconfig/httpd/conf/ directory.

Then i restarted ispconfig.

but when i type http://mwavestruecombat.homelinux.com:8080/ i am still taken to the web servers root directory. Yes i do have the dns pointing to my internet ip (70.34.184.212). The dns is being hosted at dynDNS. What should i do?

till 20th December 2006 20:45

Plese replace ALL occurrences of 81 in the file as i told you above. You missed this line:

<VirtualHost _default_:81>

badgerbox76 21st December 2006 04:19

I changed the ports but it's still not working. I have edited the file to fit the forum.

/root/ispconfig/httpd/conf/access.conf

ServerType standalone

ServerRoot "/root/ispconfig/httpd"

PidFile /root/ispconfig/httpd/logs/httpd.pid

ScoreBoardFile /root/ispconfig/httpd/logs/httpd.scoreboard

Timeout 300

KeepAlive On

MaxKeepAliveRequests 100

KeepAliveTimeout 15

MinSpareServers 1
MaxSpareServers 1

StartServers 1

MaxClients 150

MaxRequestsPerChild 0

Listen 8080

LoadModule php5_module libexec/libphp5.so

Port 8080

<IfDefine SSL>
Listen 8080
</IfDefine>

User admispconfig
Group admispconfig

ServerAdmin root@monitorwaves.homelinux.com

DocumentRoot "/home/admispconfig/ispconfig/web"

<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>

<Directory "/home/admispconfig/ispconfig/web">

Options FollowSymLinks MultiViews


AllowOverride None


Order allow,deny
Allow from all
</Directory>


<IfModule mod_userdir.c>
UserDir public_html
</IfModule>

<IfModule mod_dir.c>
DirectoryIndex index.html index.php
</IfModule>

AccessFileName .htaccess

<Files ~ "^\.ht">
Order allow,deny
Deny from all
Satisfy All
</Files>

UseCanonicalName On

<IfModule mod_mime.c>
TypesConfig /root/ispconfig/httpd/conf/mime.types
</IfModule>

DefaultType text/plain

<IfModule mod_mime_magic.c>
MIMEMagicFile /root/ispconfig/httpd/conf/magic
</IfModule>

HostnameLookups Off

ErrorLog /root/ispconfig/httpd/logs/error_log

LogLevel warn

LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent

CustomLog /root/ispconfig/httpd/logs/access_log common

ServerSignature On

# EBCDICConvertByType On=InOut text/* message/* multipart/*
# EBCDICConvertByType On=In application/x-www-form-urlencoded
# EBCDICConvertByType On=InOut application/postscript model/vrml
# EBCDICConvertByType Off=InOut */*


#
# Aliases: Add here as many aliases as you need (with no limit). The format is
# Alias fakename realname
#
<IfModule mod_alias.c>


Alias /icons/ "/root/ispconfig/httpd/icons/"

<Directory "/root/ispconfig/httpd/icons">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>


Alias /manual/ "/root/ispconfig/httpd/htdocs/manual/"

<Directory "/root/ispconfig/httpd/htdocs/manual">
Options Indexes FollowSymlinks MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>


ScriptAlias /cgi-bin/ "/root/ispconfig/httpd/cgi-bin/"


<Directory "/root/ispconfig/httpd/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>

</IfModule>

<IfModule mod_autoindex.c>


IndexOptions FancyIndexing


AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip

AddIconByType (TXT,/icons/text.gif) text/*
AddIconByType (IMG,/icons/image2.gif) image/*
AddIconByType (SND,/icons/sound2.gif) audio/*
AddIconByType (VID,/icons/movie.gif) video/*

AddIcon /icons/binary.gif .bin .exe
AddIcon /icons/binhex.gif .hqx
AddIcon /icons/tar.gif .tar
AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
AddIcon /icons/a.gif .ps .ai .eps
AddIcon /icons/layout.gif .html .shtml .htm .pdf
AddIcon /icons/text.gif .txt
AddIcon /icons/c.gif .c
AddIcon /icons/p.gif .pl .py
AddIcon /icons/f.gif .for
AddIcon /icons/dvi.gif .dvi
AddIcon /icons/uuencoded.gif .uu
AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
AddIcon /icons/tex.gif .tex
AddIcon /icons/bomb.gif core

AddIcon /icons/back.gif ..
AddIcon /icons/hand.right.gif README
AddIcon /icons/folder.gif ^^DIRECTORY^^
AddIcon /icons/blank.gif ^^BLANKICON^^


DefaultIcon /icons/unknown.gif


ReadmeName README
HeaderName HEADER


IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t

</IfModule>

<IfModule mod_mime.c>


AddEncoding x-compress Z
AddEncoding x-gzip gz tgz


AddLanguage da .dk
AddLanguage nl .nl
AddLanguage en .en
AddLanguage et .ee
AddLanguage fr .fr
AddLanguage de .de
AddLanguage el .el
AddLanguage he .he
AddCharset ISO-8859-8 .iso8859-8
AddLanguage it .it
AddLanguage ja .ja
AddCharset ISO-2022-JP .jis
AddLanguage kr .kr
AddCharset ISO-2022-KR .iso-kr
AddLanguage nn .nn
AddLanguage no .no
AddLanguage pl .po
AddCharset ISO-8859-2 .iso-pl
AddLanguage pt .pt
AddLanguage pt-br .pt-br
AddLanguage ltz .lu
AddLanguage ca .ca
AddLanguage es .es
AddLanguage sv .sv
AddLanguage cz .cz
AddLanguage ru .ru
AddLanguage zh-tw .tw
AddLanguage tw .tw
AddCharset Big5 .Big5 .big5
AddCharset WINDOWS-1251 .cp-1251
AddCharset CP866 .cp866
AddCharset ISO-8859-5 .iso-ru
AddCharset KOI8-R .koi8-r
AddCharset UCS-2 .ucs2
AddCharset UCS-4 .ucs4
AddCharset UTF-8 .utf8


<IfModule mod_negotiation.c>
LanguagePriority en da nl et fr de el it ja kr no pl pt pt-br ru ltz ca es sv tw
</IfModule>


AddType application/x-tar .tgz

AddType application/x-httpd-php .php .php3 .php4


</IfModule>

<IfModule mod_setenvif.c>


BrowserMatch "Mozilla/2" nokeepalive
BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0


BrowserMatch "RealPlayer 4\.0" force-response-1.0
BrowserMatch "Java/1\.0" force-response-1.0
BrowserMatch "JDK/1\.0" force-response-1.0

</IfModule>

<IfDefine SSL>
AddType application/x-x509-ca-cert .crt
AddType application/x-pkcs7-crl .crl
</IfDefine>

<IfModule mod_ssl.c>

SSLPassPhraseDialog builtin

SSLSessionCache none

SSLSessionCacheTimeout 300



SSLRandomSeed startup builtin
SSLRandomSeed connect builtin



SSLLog /root/ispconfig/httpd/logs/ssl_engine_log
SSLLogLevel info

</IfModule>

<IfDefine SSL>

##
## SSL Virtual Host Context
##

<VirtualHost _default_:8080>

# General setup for the virtual host
DocumentRoot "/home/admispconfig/ispconfig/web"
ServerName monitorwaves.homelinux.com
ServerAdmin root@monitorwaves.homelinux.com
ErrorLog /root/ispconfig/httpd/logs/error_log
TransferLog /root/ispconfig/httpd/logs/access_log

SSLEngine on

SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSL v2:+EXP:+eNULL


SSLCertificateFile /root/ispconfig/httpd/conf/ssl.crt/server.crt

SSLCertificateKeyFile /root/ispconfig/httpd/conf/ssl.key/server.key




<Files ~ "\.(cgi|shtml|phtml|php3?)$">
SSLOptions +StdEnvVars
</Files>
<Directory "/root/ispconfig/httpd/cgi-bin">
SSLOptions +StdEnvVars
</Directory>

SetEnvIf User-Agent ".*MSIE.*" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0

CustomLog /root/ispconfig/httpd/logs/ssl_request_log \
"%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"

</VirtualHost>

</IfDefine>

till 21st December 2006 10:43

Please post the output of:

netstat -tap

iptables -L

badgerbox76 21st December 2006 16:32

Code:

root@monitorwaves:/home/admin# netstat -tap
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address          Foreign Address        State      PID/Program name
tcp        0      0 *:27970                *:*                    LISTEN    15219/etded.x86
tcp        0      0 *:8100                  *:*                    LISTEN    5086/python2.4
tcp        0      0 *:smux                  *:*                    LISTEN    4873/snmpd
tcp        0      0 *:mysql                *:*                    LISTEN    4679/mysqld
tcp        0      0 localhost:47180        *:*                    LISTEN    4316/hpiod
tcp        0      0 *:x11-1                *:*                    LISTEN    10692/Xrealvnc
tcp        0      0 *:x11-2                *:*                    LISTEN    10762/Xrealvnc
tcp        0      0 *:x11-3                *:*                    LISTEN    14453/Xrealvnc
tcp        0      0 *:x11-4                *:*                    LISTEN    14515/Xrealvnc
tcp        0      0 *:ftp                  *:*                    LISTEN    18449/proftpd: (acc
tcp        0      0 monitorwaves.com:domain *:*                    LISTEN    14363/named
tcp        0      0 localhost:domain        *:*                    LISTEN    14363/named
tcp        0      0 localhost:953          *:*                    LISTEN    14363/named
tcp        0      0 localhost:58910        *:*                    LISTEN    4319/python
tcp        0      0 localhost:53243        localhost:mysql        TIME_WAIT  -
tcp        0      0 localhost:53242        localhost:mysql        TIME_WAIT  -
tcp        0      0 localhost:57970        localhost:8100          ESTABLISHED5125/python
tcp        0      0 localhost:57973        localhost:8100          ESTABLISHED5137/python
tcp        0      0 localhost:57967        localhost:8100          ESTABLISHED5116/python
tcp        0      0 localhost:57966        localhost:8100          ESTABLISHED5108/python
tcp        0      0 localhost:8100          localhost:57973        ESTABLISHED5086/python2.4
tcp        0      0 localhost:8100          localhost:57970        ESTABLISHED5086/python2.4
tcp        0      0 localhost:8100          localhost:57967        ESTABLISHED5086/python2.4
tcp        0      0 localhost:48325        localhost:47180        ESTABLISHED4319/python
tcp        0      0 localhost:8100          localhost:57966        ESTABLISHED5086/python2.4
tcp        0      0 localhost:47180        localhost:48325        ESTABLISHED4316/hpiod
tcp6      0      0 *:imaps                *:*                    LISTEN    4428/couriertcpd
tcp6      0      0 *:pop3s                *:*                    LISTEN    4469/couriertcpd
tcp6      0      0 *:5901                  *:*                    LISTEN    10692/Xrealvnc
tcp6      0      0 *:5902                  *:*                    LISTEN    10762/Xrealvnc
tcp6      0      0 *:pop3                  *:*                    LISTEN    4446/couriertcpd
tcp6      0      0 *:5903                  *:*                    LISTEN    14453/Xrealvnc
tcp6      0      0 *:imap2                *:*                    LISTEN    4405/couriertcpd
tcp6      0      0 *:5904                  *:*                    LISTEN    14515/Xrealvnc
tcp6      0      0 *:www                  *:*                    LISTEN    14291/apache2
tcp6      0      0 *:webcache              *:*                    LISTEN    14291/apache2
tcp6      0      0 *:tproxy                *:*                    LISTEN    14291/apache2
tcp6      0      0 *:ssh                  *:*                    LISTEN    4889/sshd
tcp6      0      0 ip6-localhost:953      *:*                    LISTEN    14363/named
tcp6      0      0 *:https                *:*                    LISTEN    14291/apache2
tcp6      0  5776 monitorwaves.com:ssh    gw.sdshealth.com:13163  ESTABLISHED5577/sshd: admin [p
root@monitorwaves:/home/admin# iptables -L
Chain INPUT (policy ACCEPT)
target    prot opt source              destination

Chain FORWARD (policy ACCEPT)
target    prot opt source              destination

Chain OUTPUT (policy ACCEPT)
target    prot opt source              destination
root@monitorwaves:/home/admin#


falko 21st December 2006 18:32

I don't see ISPConfig running in the netstat output. Please run
Code:

/etc/init.d/ispconfig_server restart
and try again.

badgerbox76 21st December 2006 18:58

Starting ISPConfig
Code:

root@monitorwaves:/etc/init.d# ./ispconfig_server start
Starting ISPConfig system...
[Thu Dec 21 12:56:05 2006] [alert] ispconfig_httpd: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
Apache/1.3.37 mod_ssl/2.8.28 (Pass Phrase Dialog)
Some of your private key files are encrypted for security reasons.
In order to read them you have to provide us with the pass phrases.

Server monitorwaves.homelinux.com:8080 (RSA)
Enter pass phrase:

Ok: Pass Phrase Dialog successful.
/root/ispconfig/httpd/bin/apachectl startssl: httpd started
FreshClam is already running!
ISPConfig system is now up and running!
root@monitorwaves:/etc/init.d#

netstat -tap
Code:

root@monitorwaves:/etc/init.d# netstat -tap
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address          Foreign Address        State      PID/Program name
tcp        0      0 *:27970                *:*                    LISTEN    15219/etded.x86
tcp        0      0 *:8100                  *:*                    LISTEN    5086/python2.4
tcp        0      0 *:smux                  *:*                    LISTEN    4873/snmpd
tcp        0      0 *:mysql                *:*                    LISTEN    4679/mysqld
tcp        0      0 localhost:47180        *:*                    LISTEN    4316/hpiod
tcp        0      0 *:x11-1                *:*                    LISTEN    10692/Xrealvnc
tcp        0      0 *:x11-2                *:*                    LISTEN    10762/Xrealvnc
tcp        0      0 *:x11-3                *:*                    LISTEN    14453/Xrealvnc
tcp        0      0 *:x11-4                *:*                    LISTEN    14515/Xrealvnc
tcp        0      0 *:ftp                  *:*                    LISTEN    9906/proftpd: (acce
tcp        0      0 monitorwaves.com:domain *:*                    LISTEN    9888/named
tcp        0      0 localhost:domain        *:*                    LISTEN    9888/named
tcp        0      0 localhost:953          *:*                    LISTEN    9888/named
tcp        0      0 localhost:58910        *:*                    LISTEN    4319/python
tcp        0      0 localhost:57970        localhost:8100          ESTABLISHED5125/python
tcp        0      0 localhost:57973        localhost:8100          ESTABLISHED5137/python
tcp        0      0 localhost:57967        localhost:8100          ESTABLISHED5116/python
tcp        0      0 localhost:57966        localhost:8100          ESTABLISHED5108/python
tcp        0      0 localhost:8100          localhost:57973        ESTABLISHED5086/python2.4
tcp        0      0 localhost:8100          localhost:57970        ESTABLISHED5086/python2.4
tcp        0      0 localhost:8100          localhost:57967        ESTABLISHED5086/python2.4
tcp        0      0 localhost:48325        localhost:47180        ESTABLISHED4319/python
tcp        0      0 localhost:8100          localhost:57966        ESTABLISHED5086/python2.4
tcp        0      0 localhost:45533        localhost:mysql        TIME_WAIT  -
tcp        0      0 localhost:45532        localhost:mysql        TIME_WAIT  -
tcp        0      0 localhost:47180        localhost:48325        ESTABLISHED4316/hpiod
tcp6      0      0 *:imaps                *:*                    LISTEN    4428/couriertcpd
tcp6      0      0 *:pop3s                *:*                    LISTEN    4469/couriertcpd
tcp6      0      0 *:5901                  *:*                    LISTEN    10692/Xrealvnc
tcp6      0      0 *:5902                  *:*                    LISTEN    10762/Xrealvnc
tcp6      0      0 *:pop3                  *:*                    LISTEN    4446/couriertcpd
tcp6      0      0 *:5903                  *:*                    LISTEN    14453/Xrealvnc
tcp6      0      0 *:imap2                *:*                    LISTEN    4405/couriertcpd
tcp6      0      0 *:www                  *:*                    LISTEN    9812/apache2
tcp6      0      0 *:webcache              *:*                    LISTEN    9812/apache2
tcp6      0      0 *:5904                  *:*                    LISTEN    14515/Xrealvnc
tcp6      0      0 *:tproxy                *:*                    LISTEN    9812/apache2
tcp6      0      0 *:ssh                  *:*                    LISTEN    4889/sshd
tcp6      0      0 ip6-localhost:953      *:*                    LISTEN    9888/named
tcp6      0      0 *:https                *:*                    LISTEN    9812/apache2
tcp6      0    52 monitorwaves.com:ssh    gw.sdshealth.com:15735  ESTABLISHED9615/sshd: admin [p
root@monitorwaves:/etc/init.d#

/etc/hosts
Code:

127.0.0.1 localhost admin-server monitorwaves.com
192.168.0.105 monitorwaves.com server1

# 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

hostname
Code:

monitorwaves.com

till 22nd December 2006 12:43

It looks like you accidently encrypted your SSL certificate, so ISPConfig is not able to restart or start automatically.

Please create a new unencrypted SSL certificate as described here:

http://www.howtoforge.com/forums/sho...t=firefox+8182


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

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