Forum OpenACS Q&A: openacs for apache configs

Collapse
Posted by Matthew Terenzio on
Hi folks,
    I was wondering if anyone could save me a couple of hours by
hinting where on openacs for apache one would do the config
equivalents of nsd.tcl. For instance, I'd like to set the ip address
of the server. I've set the ip address for apache using linuxconf
under apache-defaults. I'm missing something else.......it would
seem. Hmmm.
Collapse
Posted by S. Y. on

I assume you're talking about plain old webserver configuration isses rather than OpenACS configuration issues. I'm also going to assume that you're running Red Hat Linux since you failed to mention which distribution you are running.

Do this:

    % rpm -q -l apache | grep conf
    

The Apache config file is usually called httpd.conf. Unlike the nsd.tcl example file, the Apache config file is heavily commented. For changing the IP address and port, you do something like:

    Listen 12.34.56.78:8080
    

The default httpd.conf listens on port 80 (if I remember correctly) on all functional network interfaces (including the loopback address - just like nsd). Edit as necessary and restart httpd (there's usually a script in /etc/rc.d/init.d) in order for the changes to effect.

With the comments, the documentation in the server's HTML root, the online documentation elsewhere on the Internet, and dead trees references like the O'Reilly book, you should be able to figure out what you need to do.

And stop using linuxconf if you want to speed up your Linux learning curve. Good luck.

Collapse
Posted by S. Y. on
Hmmm, I was writing a response saying that I misread the question, but under closer inspection, the original question itself is rather confusing.

The openacsconfig script appears to want to stick the ACS config file in /etc/opt/openacs/ad.ini. You set SystemURL the same way as ACS Classic. Like ACS Classic, the OpenACS ad.ini file only controls ACS behavior.

Web server-specific stuff all falls under Apache's httpd.conf file (things like whether or not CGI-BIN scripts are allowed, which ports and IP addresses to listen on, the type of access log files that are written out and where those log files go, which server modules are being used, etc.). This is no different than the AOLserver nsd.ini/nsd.tcl config file.

If you're trying to set the IP addresses that httpd listens on but you aren't seeing any changes, trash linuxconf and edit httpd.conf by hand. Good luck.