How to set up port 80 for Apache server
- Product: Aleph
- Product Version: 20, 21, 22, 23
Question
How to set up port 80 for Apache server in Aleph?
Answer
- Shutdown the WWW server with util W
- Stop Apache server (as UNIX user aleph)
apcb
apachectl stop
- Change file $httpd_root/conf/httpd.conf from
ServerName <server-name>:8991
Listen 8991
to
ServerName <server-name>:80
Listen 80
- Change file $httpd_root/htdocs/.index.html from
var loc = "http://<server-name>:8991/F?RN="+session;
to
var loc = "http://<server-name>:80/F?RN="+session;
- Change occurrences of 8991 in $httpd_root/htdocs/main.html to 80. (Note: these lines in main.html are no longer used in normal circumstances, but, for consistency, we suggest changing them.)
- Change file $alephe_root/aleph_start from
setenv HTTPD_PORT 8991
setenv PDS_PORT 8991
to
setenv HTTPD_PORT 80
setenv PDS_PORT 80
- Activate settings in $alephe_root/aleph_start:
source $alephe_root/aleph_start
- Start Apache server (as UNIX user root)
su
Password:
# $httpd_root/bin/apachectl_auto
- Start WWW server (as UNIX user aleph)
- Test access to OPAC
Additional Information
- To see the current Apache port use
echo $HTTPD_PORT
- For automatic startup change
/exlibris/startup/init.dat
aleph
to
root
Example
Old:
Y:apache:aleph:httpd:/exlibris/aleph/a20_1:../a20_1:apachectl_auto:apachectl
New:
Y:apache:root:httpd:/exlibris/aleph/a20_1:../a20_1:apachectl_auto:apachectl
Note: the "a20_1" will need to be changed for your particular version/instance, such as: a23_1 .
- Article last edited: 24-Jun-2014