httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Praveena Vittal <Praveena.Vit...@Sun.COM>
Subject [users@httpd] Query regarding the httpd.conf
Date Mon, 10 Sep 2007 10:42:46 GMT
Hi,

 I am trying to make 2 ports listen in same httpd.conf file.

port 1-3032 - https://

port 2 -2022- standalone.

httpd.conf file is below:

ServerType standalone

ServerRoot     /opt/SUNWRM2/applications/apache
DocumentRoot   /opt/SUNWTeleAlarm/www_live/docs
PidFile        /var/opt/SUNWTeleAlarm/LOG/TeleAlarmweb.pid
ScoreBoardFile /var/opt/SUNWTeleAlarm/LOG/TeleAlarmweb.scoreboard
ErrorLog       /var/opt/SUNWTeleAlarm/LOG/TeleAlarmweb_error_log
LockFile       /var/opt/SUNWTeleAlarm/LOG/TeleAlarmweb.lock

Timeout 300
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 15
MinSpareServers 1
MaxSpareServers 3
StartServers 1
MaxClients 150
MaxRequestsPerChild 30

LoadModule env_module         libexec/mod_env.so
LoadModule config_log_module  libexec/mod_log_config.so

LoadModule mime_module        libexec/mod_mime.so
LoadModule negotiation_module libexec/mod_negotiation.so
LoadModule status_module      libexec/mod_status.so
LoadModule includes_module    libexec/mod_include.so
LoadModule autoindex_module   libexec/mod_autoindex.so
LoadModule dir_module         libexec/mod_dir.so
LoadModule cgi_module         libexec/mod_cgi.so
LoadModule asis_module        libexec/mod_asis.so

LoadModule imap_module        libexec/mod_imap.so
LoadModule action_module      libexec/mod_actions.so
LoadModule userdir_module     libexec/mod_userdir.so
LoadModule alias_module       libexec/mod_alias.so
LoadModule access_module      libexec/mod_access.so
LoadModule auth_module        libexec/mod_auth.so
LoadModule setenvif_module    libexec/mod_setenvif.so
LoadModule fastcgi_module     libexec/mod_fastcgi.so


#<IfDefine SSL>
LoadModule ssl_module         libexec/libssl.so
#</IfDefine>

ClearModuleList
AddModule mod_env.c
AddModule mod_log_config.c
AddModule mod_mime.c
AddModule mod_negotiation.c
AddModule mod_status.c
AddModule mod_include.c
AddModule mod_autoindex.c
AddModule mod_dir.c
AddModule mod_cgi.c
AddModule mod_asis.c
AddModule mod_imap.c
AddModule mod_actions.c
AddModule mod_userdir.c
AddModule mod_alias.c
AddModule mod_access.c
AddModule mod_auth.c
AddModule mod_so.c
AddModule mod_setenvif.c
AddModule mod_fastcgi.c
#<IfDefine SSL>
AddModule mod_ssl.c
#</IfDefine>
Port 2022



User rm2
Group other

ServerAdmin root@localhost
ServerName localhost

<Directory />
    Options All
    AllowOverride None
</Directory>

AccessFileName .htaccess
UseCanonicalName On
DefaultType text/plain
<IfModule mod_mime_magic.c>
    MIMEMagicFile /opt/Apache/conf/magic
</IfModule>
HostnameLookups Off



LogLevel debug
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 /var/opt/SUNWTeleAlarm/LOG/TeleAlarmweb_access_log common
ServerSignature On

Alias /index.html /opt/SUNWTeleAlarm/www_live/cgi-bin/frontpage.cgi
PassEnv LD_LIBRARY_PATH

<Directory "/opt/Apache/icons">
    Options Indexes MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>
ScriptAlias /cgi-bin/ "/opt/SUNWTeleAlarm/www_live/cgi-bin/"
<Directory "/opt/SUNWTeleAlarm/www_live/cgi-bin/">
    AllowOverride None
    Options ExecCGI
    Order allow,deny
    Allow from all
</Directory>

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
IndexOptions FancyIndexing SuppressDescription
AddDescription "StarOffice Doc" .sdw
AddDescription "PostScript" .ps
AddAltByType "Star" .sdw
HeaderName .index_head
ReadmeName README
HeaderName HEADER
IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
AddEncoding x-compress Z
AddEncoding x-gzip gz
AddLanguage en .en
AddLanguage fr .fr
AddLanguage de .de
AddLanguage da .da
AddLanguage el .el
AddLanguage it .it
LanguagePriority en fr de
AddHandler cgi-script .cgi .pl
AddHandler fastcgi-script .fcg .fcgi .exe
AddType httpd/send-as-is csv  download
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


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

#<IfModule mod_ssl.c>

SSLPassPhraseDialog  builtin

SSLSessionCache         dbm:/var/opt/SUNWTeleAlarm/LOG/TeleAlarm_ssl_scache
SSLSessionCacheTimeout  300

SSLMutex  file:/var/opt/SUNWTeleAlarm/LOG/TeleAlarm_ssl_mutex

SSLRandomSeed startup builtin
SSLRandomSeed connect builtin

SSLLog      /var/opt/SUNWTeleAlarm/LOG/TeleAlarm_ssl_engine_log
SSLLogLevel info

#</IfModule>

#<IfDefine SSL>


Listen 80
<VirtualHost *:80>
  Redirect / https://gssie-210-2.central/
</VirtualHost>
Listen 443
Listen 3032
#<VirtualHost *:3032
<VirtualHost *:443 *:3032>

DocumentRoot   /opt/SUNWTeleAlarm/www_live/docs
ServerName localhost
ServerAdmin root@localhost


ErrorLog /var/opt/SUNWTeleAlarm/LOG/apache_error_log
TransferLog /var/opt/SUNWTeleAlarm/LOG/apache_access_log

SSLEngine on

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

SSLCertificateFile /var/opt/SUNWTeleAlarm/configuration/tomcat.cert

SSLCertificateKeyFile /var/opt/SUNWTeleAlarm/configuration/tomcat.key

<Files ~ "\.(cgi|shtml|phtml|php3?)$">
    SSLOptions +StdEnvVars
</Files>
<Directory "/opt/SUNWTeleAlarm/www_live/cgi-bin">
    SSLOptions +StdEnvVars
</Directory>

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

CustomLog /var/opt/SUNWTeleAlarm/LOG/tele_request_log \
          "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"

</VirtualHost>



Without Listen 2022 the port is not listening.Can you please check if it 
is correct or wrong?


Thanks & Regards,
Praveena

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message