i am trying to use my HTTP server as load balancer to my Application-server cluster setup.
so, i downloaded mod_proxy_cluster binaries and added below files to {$apache-home}/modules directory.
mod_proxy.so
mod_proxy_ajp.so
mod_slotmem.so
mod_manager.so
mod_proxy_cluster.so
mod_advertise.so
and also i added below lines in the httpd.conf file.
LoadModule slotmem_module modules/mod_slotmem.so
LoadModule manager_module modules/mod_manager.so
LoadModule proxy_cluster_module modules/mod_proxy_cluster.so
LoadModule advertise_module modules/mod_advertise.so
and then i tried to restart the Apache server but it is not getting started.. i tried a couple of times.. but no luck...
can anybody tell me where i am wrong?
thank you, in advance.
In ubuntu, try to view the apache log file at /var/log/apache2/error.log
If there is a line like this :
[Wed Aug 13 17:57:19 2014] [emerg] create_mem_node /etc/apache2/logs/manager.node failed: No such file or directory
Configuration Failed
So, just create a folder named logs in the /etc/apache2, then grant the permission to this folder.
No, you can start apache2 by apachectl start, then use netstat -tupln to check whether apache2 was started. (view port 80)
It is configurable; set MemManagerFile /your/path/to/httpd/cache/mod_cluster outside VirtualHost scope. Older mod_cluster versions were trying to store shm files in log/ directory by default. The current versions, 1.3.x, use the proper cache/ dir though.
Related
I am trying to setup a local https server using Apache2.4.27.
I have followed the instruction given on this website how to setup SSL on Apache.
When I uncomment LoadModule ssl_module libexec/mod_ssl.so on my Apache httpd configuration, I got the following error when I tried to restart my Apache server:
httpd: Syntax error on line 141 of /usr/local/etc/apache2/2.4/httpd.conf: Can't locate API module structure `ssl_module' in file /usr/local/opt/httpd24/libexec/mod_ssl.so: dlsym(0x7fe0a1c07080, ssl_module): symbol not found
I have confirmed that there is mod_ssl.so file inside my httpd's libexec folder.
I wonder where did I go wrong, since fresh installation of openssl and apache could not help me to solve this problem.
Google chrome update their security. how to enable HTTPS:// in xampp?
1) There is the config file xampp/apache/conf/extra/httpd-ssl.conf which contains all the ssl specific configuration. The files starts with <IfModule ssl_module>, so it only has an effect if the apache has been started with its mod_ssl module. Open the file xampp/apache/conf/httpd.conf in an editor and search for the line
#LoadModule ssl_module modules/mod_ssl.so
remove the hashmark, save the file and re-start the apache.
2) Also if you your document root is not properly configured than it might give you permission denied error. check for DOC ROOT
Check the highlighted text
I found this here. Refer to this for any help.
I have installed latest TeamCity 9, now I want to access it from the public Internet via HTTPS. So I followed the instructions to setup TeamCity behind an Apache proxy server, as described in the official docs.
Now when I try to access the TeamCity server in the browser I get a 404 page from the Tomcat server. I am not sure what I did wrong, but the issue might be related to the /tc sub folder I have moved the content ROOT into (as described in the docs).
When I connect directly from the server to http://localhost:8111/tc I get exactly the same 404 message.
I feel a bit lost here.
Any ideas where I should look for the error?
PS: When I move the content ROOT back into the original folder, and set the Apache proxy accordingly, then it works fine. So the issue is indeed related to the /tc sub folder.
This is what worked for me
Step 1: I installed teamcity at the port 8080
Step 2: Moved all contents of <teamcity_home>\webapps\ROOT\*.* to <teamcity_home>\webapps\teamcity
Step 3: Created <Apache_Home>\conf\extra\httpd-teamcity.conf with the following contents
ProxyRequests Off
ProxyPass /teamcity http://localhost:8080/teamcity connectiontimeout=240 timeout=1200
ProxyPassReverse /teamcity http://localhost:8080/teamcity
Step 4: Added the following to <Apache_Home>\conf\httpd.conf file
#Include TeamCity Settings
Include conf/extra/httpd-teamcity.conf
and uncommented the following
# Modules to load to redirect teamcity
LoadModule headers_module modules/mod_headers.so
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so
Step 5: Accessed Teamcity via http://localhost:8080/teamcityORhttp://localhost/teamcity
Note: you can no longer access teamcity via http://localhost:8080
And update the configuration of your agent to point to the new server location.
I'm trying to set up the Tomcat 7 connector mod_jk.so on OS X (10.8.3) so that calls to Tomcat will go through httpd from apache 2.2. The file mod_jk.so is in place. But where does workers.properties go? The instructions at http://tomcat.apache.org/connectors-doc/webserver_howto/apache.html just don't seem to say.
I know you're now using mod_proxy but I'm answering this for the record, at least to include the info when your *nix packaging framework is involved.
In Debian, the package apache2 installs apache with the configuration directory /etc/apache2/mods-available and the seperate package libapache2-mod-jk places an apache config file in this directory called jk.conf, which gets pulled in by apache at start-up.
jk.conf has the JkWorkersFile directive.
The libapache2-mod-jk package also installs a workers.properties file under /etc/libapache2-mod-jk.
So for OS X, you put your workers.properties file anywhere, e.g. rationally in the same dir as the httpd.conf, and then you have to put the directive either in your httpd.conf file, or that might contain an Include to pull in everything in a directory, e.g. conf.d where you can put custom stuff in your own files that won't get interfered with at package upgrades.
Please put your workers.properties file according to your JkWorkersFile configuration:
JkWorkersFile /etc/httpd/conf/workers.properties
I had the same problem. But later I found that I should first look whether I am using mod_jk.so or mod_proxy_ajp in httpd.conf. I turned out to be tha later one. So instead of editing the worker.properties, which I don't have, I should edit the httpd.conf: Add a ProxyIOBufferSize directive to Apache httpd's configuration.
ProxyIOBufferSize 65536
Hope it helps.
Ref: Here at the bottom of the page.
I'm running a Ubuntu Sever with Apache/2.2.17. I can't seem to run JSP I just get the source code in the browser. What am I doing wrong?
Thanks
What am I doing wrong?
Expecting that Apache HTTPD magically supports JSP. It doesn't. You need Apache Tomcat instead.
See also:
Our JSP wiki page - at the bottom you can find several tutorial links to get started properly.
Try this
1)get the mod_jk.so
2)include this in httpd.conf file
LoadModule jk_module modules/mod_jk.so
3)Then in virtual host section of httpd.conf
JkMount /test/*.jsp loadbalancer
put your jsp file in webapp dir in the tomcat directory. Run as localhost:8080/your.jsp from your browser. Also make sure tomcat is set properly by running localhsot:8080 form your browser.