w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML Categories
CherryPy application behind apache, apache serving other applications
Create a config file under httpd/conf.d/, that reads: ProxyPass /app2 http://localhost/app2 ProxyPassReverse /app2 http://localhost:9091/app2 this is the cherrypy server: http://localhost:9091 with an application running in /app2. This is a reverse proxy. When client requests /app2, the request is finally handled as http://localhost:9091/app2 and this seems being done without the client being aware of the cherrypy server.

Categories : Python

Issue when both apache2 server and apache tomcat server installed in my linux machine
Change the default port for Tomcat to something else, for example 8181 Current versions of web browsers recognize port 8080 like 80, so that's why it's forward you to 80 or cut the port option from URL. To change Tomcat port open server config file server.xml search for "8080", which is the current port in use, and replace it with something else (make sure the new port not in use), save and restart Tomcat.

Categories : Java

how to remove catalina.out from Linux server where Apache tomcat server installed
you don't have to remove catalina.out file. You can use logrotate, to rotate logs, and remove old files. Very useful description is here: http://www.swoops.co.uk/how-to-set-up-log-rotation-for-tomcat-catalina-out-log-file/ or here: http://java.dzone.com/articles/how-rotate-tomcat-catalinaout

Categories : Java

How to config WAMP apache server to allow cross domain requests of ajax?
You were on the right track. The only thing left to do now is to enable the headers module. This can be done as follows: click on the wamp icon in your systray go to Apache > Apache modules check the option 'headers_module' After you do this, wamp will restart and the configuration you put in your post will work

Categories : Apache

how a web server(apache) handles multiple HTTP requests, on the code level
Bad news is the apache server does not native support for that kind of work. You have to use some intermediate stuff like database to handle this. However, good news is node.js do that stuff easily in an elegance way :D

Categories : Apache

Error 500 on Apache/Linux server when accessing a git-cloned app
Just found this question because I had the same problem and i couldn't find an answer anywhere so this is for everyone in the future that'll find this question. You have to edit your bashrc file $ vim ~/.bashrc And add this to the bottom of the file umask 022 After this you have to logout and login before this will take effect (if you're logged in using ssh just connect again) or execute the file . ~/.bashrc Now you can git clone again and it'll work. You can find the documentation for umask here

Categories : GIT

How to use Apache DS with Apache Camel, Spring Security as embedded LDAP server prepopulated from LDIF?
The root entry in the embedded server is restricted to "domain" so you're limited to DNs which end in "dc=blah,dc=blahblah". you might consider using the LDAP tests from Spring Security as a starting point since they are already up and running.

Categories : Spring

Jboss5.1.x---Apache 2.2.22 Integration-Service Temporarily Unavailable(503 304) -Response
I think that error occurs because of mod_jk. Although that error occurs, you can call your web application via apache server. Usually, we use AJP connector to integrate Apache to Jboss with port(8009). So, you have to pass your web application address at etc/httpd/conf.d/proxy_ajp.conf like ProxyPass /mywebapp/ ajp://jbossserverip:8009/mywebapp/ From your browser, type your apache server address apacherserveripaddress/mywebapp/

Categories : Apache

Apache Camel - aggregator to space out requests, but not queuing requests
I believe you would be interested in seeing the Throttler pattern, which is documented here http://camel.apache.org/throttler.html Hope this helps :) EDIT - If you are wanting to eliminate excess requests, you can also investigate setting a TTL (Time to live) header within JMS and add a concurrent consumer of 1 to your route, which means any excess messages will also be discarded.

Categories : Apache

apache http client org.apache.http.NoHttpResponseException: The target server failed to respond
Check if your "URL" has correct value. Error message says "The target server failed to respond". That's either your provided URL has wrong or server has shut down. If you provided wrong parameter name/value or something, error message would be different.

Categories : Java

Are apache's worker configuration and mod_wsgi's daemon mode related?
For a start, go watch the following talks for a partial explanation. http://lanyrd.com/2013/pycon/scdyzk/ http://lanyrd.com/2012/pycon/spcdg/ In short, the Apache worker processes proxy requests to the mod_wsgi daemon mode processes if daemon mode is actually configured and the WSGI application delated properly to run in it.

Categories : Apache

Linux users', specifically Apache, permissions settings, [Linux noob :]
usually any daemon will need to access a number of ressources. it is therefore good practice to run each daemon under a special user:group, rather than nobody:nogroup. traditionally (e.g. on Debian systems) apache runs as www-data:www-data. finally, user permissions take precedence over group permissions (which in turn take precedence over other permissions). this means that a directory where the user does not have write perms but the user's group can write is effectively r/o for that user (but not for other members of the group)

Categories : Linux

amazon ec2 apache crash
From what you posted, it looks like this the problem: "Apache exit signal Segmentation fault (11)" [This is what you need to google] Check if you have enough resources(Memory(free -m) and disk-space). Then, if still stuck, you may want create dump as explained below and dig into that dump Section: Debugging intermittent crashes http://httpd.apache.org/dev/debugging.html

Categories : Apache

installing php and apache on Amazon EC2 instances
Have you read the error message ? Read again: Error: httpd24-tools conflicts with httpd-tools-2.2.25-1.0.amzn1.x86_64 Error: php54-common conflicts with php-common-5.3.27-1.0.amzn1.x86_64 You are trying to install HTTPD 2.4 when you appear to have HTTPD 2.2 installed and same thing with php, namely, you have PHP 5.3 installed and you are trying to install 5.4. A simple way to confirm this is to type in the following into bash: php -v httpd -V If you want to install newer versions then remove the older versions. yum remove httpd-tools-2.2.25-1.0.amzn1.x86_64 php-common-5.3.27-1.0.amzn1.x86_64

Categories : PHP

Node.js proxy through Apache on Amazon EC2
I agree with the commenters that it's possible, if you're using express static middleware, that you may have misconfigured express. In the event, however, that you want apache to handle static requests regardless, this is the apache configuration syntax for making a ProxyPass exception: ProxyPass /javascript/ ! You would also need to make sure that you have a DocumentRoot set, but this should pass thru any requests to the javascript directory to regular apache, which will handle requests to that directory in whatever way you've configured.

Categories : Apache

Strange apache lag in requests
In case it provides some insight, watch my talk from PyCon US. http://lanyrd.com/2013/pycon/scdyzk/ The talk deals with things like process churn and startup costs. One thing you shouldn't do is set maximum requests if you don't really need it. Also consider trying New Relic to help diagnose where the issue is. That will save a lot of guessing if it is a web application of backend service infrastructure issue. As far as seeing how such monitoring can help, watch another one of my PyCon talks. http://lanyrd.com/2012/pycon/spcdg/

Categories : Django

CloudWatch Amazon Aws - Create Alarm in LB to monitorize if Apache Solr is down?
You could use the PingRequestHandler of Solr to keep a watch on the Health of your Solr instance. This answer talks about how to use a HealthCheck file to return back the status of your instance.

Categories : Solr

Apache - Find the number of requests for a file
With apache Access logs you could be able to identify whether a particular resource accessed or not along with response code. You will have to count number of such accesses which resulted in success response. For this, you may have to grep all the previous logs. I don't think there is straight forward way for this. If your logs are huge, you could consider some map and reduce framework to achieve this. Another option is to have your app server delivers the resource using some controller, and persist the count in database, which is generally inefficient.

Categories : Apache

Using Apache mod_rewrite to send all requests to a file
Given that /var/www/ is the root folder then this would work: RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule . /sites/urlprocessor.php [L] Basically this will redirect any non-existent folder and file to the urlprocessor.php For more information on how to handle the redirect with your PHP you can refer yourself to this answer.

Categories : Apache

Apache config to direct all requests to the same page
I'll use this as an answer <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ /index.php/$1 [L] </IfModule> <IfModule !mod_rewrite.c> ErrorDocument 404 /index.php </IfModule>

Categories : Apache

Enable KeepAlive in apache for specific requests only
You can turn off keep-alives on individual requests by setting the magical environment variable nokeepalive using a BrowserMatch or SetEnvIf directive. For example: SetEnvIf Remote_Addr "^10.0.0." nokeepalive will disable keep-alives for clients from an ip address beginning with 10.0.0.

Categories : Apache

Apache reverse proxy with digest auth prevents stylesheets from Amazon S3
My guess is that your proxy is sending the Authorization header to S3 and S3 responds with that error. This is because S3 uses the same Authorization header to authorize API requests and it does not support basic or digest authentication on it's own. Do a test towards a local backend and verify what request headers are being sent by the proxy. If the Authorization header is indeed present, rewrite the request on the proxy to remove it before it's sent to the S3 backend.

Categories : Apache

Amazon Elastic beanstalk : Use nginx/apache to forward subdomains to subfolders
you can use Configuration File to customize your nginx configuration. Create an .ebextensions directory in the top-level of your source bundle. Create a configuration file, /your_app/.ebextensions/custom.config. Type the following inside the configuration file to configure forward settings. (I have created a gist) files: "/etc/nginx/conf.d/custom.conf" : content: | server { listen 8080; server_name foo.chief-motp.com; location / { proxy_pass http://nodejs/foo/; proxy_set_header Connection ""; proxy_http_version 1.1; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

Categories : Htaccess

How to set the default header for all requests in apache http client?
A little Googling turned up this blog post: String url = "http://www.google.com/search?q=httpClient"; HttpClient client = new DefaultHttpClient(); HttpGet request = new HttpGet(url); // add request header request.addHeader("Accept", "application/json"); HttpResponse response = client.execute(request);

Categories : Java

Sending requests using HtmlUnit and Apache while maintaining cookies
Yes, this is possible. I also do this sometimes. You need to extract the cookies from htmlunit before using httpclient. You do that by calling Set<Cookie> cookies = webClient.getCookieManager().getCookies(); You can loop through the set and extract whatever cookie you need. When using httpclient pass the cookie as your header parameter. It will work.

Categories : Java

Limiting the size of client requests in Apache Tomcat
According to this link you can remove the POST size, I assume that it works both ways and you can set the limit on the POST size to something like 4KB in your server.xml file. http://tomcat.apache.org/tomcat-5.5-doc/config/http.html

Categories : Java

python requests does not work for https from apache with wsgi
From 0.10.1, requests dropped support for Python 2.5. Upgrade your Python or use requests 0.10.0 version of requests. 0.10.1 (2012-01-23) PYTHON 3 SUPPORT! Dropped 2.5 Support. (Backwards Incompatible)

Categories : Python

How can i connect to Apache Cxf web service hosted on Apache Tomcat(Ws security enabled )?
found it and i hope that it helps someone just replace the localhost with the ip address and evreything will be good have a look at a similar post http://cxf.547215.n5.nabble.com/404-from-web-service-client-td5710925.html

Categories : Apache

Getting java.lang.NoClassDefFoundError: org/apache/xerces/dom/ElementNSImpl with Apache ODF Toolkit
It seems your code can not find the class: Caused by: java.lang.ClassNotFoundException: org.apache.xerces.dom.ElementNSImpl from ODF Toolkit Note: ODFDOM requires Apache Xerces. The jar file xercesImpl.jar also must exist in a folder lib next to odfxsltrunner.jar file, or it must be in the classpath. The ODF XSLT Runner NetBeans projects includes a reference to xersesImpl.jar in the runtime classpath which has to be adapted after checking out the project.

Categories : Java

Setting up a subdomain with apache on linux
VirtualHost directive should contain IP address or something resolvable. "myproject.localhost" is not resolvable, and Apache tells you so. You probably need to change that to <VirtualHost *:80>

Categories : Linux

Requests dispatch to specific JBoss instance in cluster with apache mod_cluster 1.1?
could you elaborate more on what do you actually need to achieve? mod_cluster is a smart load balancer that dynamically registers worker nodes and their contexts, so, for instance, if I had this cluster: worker_0, contexts: houby/, ocet/, houbyaocet/ worker_1, contexts: houby/, ocet/, devtest/ worker_2, contexts: houby/, ocet/, devtest/ and this mod_cluster httpd load balancer: http://mycompany.example.com then requests to either houby/ or ocet/ could be balanced among all workers, whereas devtest/ could be handled by worker_1 and worker_2 only. Any request to houbyocet/ will end up on worker_0, because that is the only worker that registered this context. You don't configure this whole logic, it's done automatically by mod_cluster. Worker nodes send special configuration messages t

Categories : Apache

WHM/Cpanel 11.38.2 (build 6) with Easy::Apache v3.22.7 broken when upgrading from Apache 2.2.x to 2.4.x
Well, I'm not totally certain, but I tried updating all of my WHM software, and something got updated (Easy Apache also was updated version 3.22.10 today 8/29/2013). I tried building apache 2.4.x today and it worked. This question can be closed. Rich

Categories : Apache

Running Apache CXF on top of Atmosphere in Apache Karaf 3.0 (OSGI Environment)
I don't have samples for you since I never used those frameworks before, but aren't those just servlets that you just configure as std. Servlets? If so you just need to use the default http-Service configuration. For samples on how to use that take a look at the pax-web samples.

Categories : Java

Linux permissions, apache and Cron tabs
Under Ubuntu, apache is normally run as www-data:www-data and its configuration stored in /etc/apache2/apache.conf I'm guessing from the configuration you have that you've installed from tarballs rather than debian packages? Changing permissions for the ziggie user is probably not necessary, though you could add it to the www-data group. If ziggie only needs to change content for a website then none of that needs to be owned by www-data.

Categories : Linux

Deny access permissions - apache, linux
did you try something like this into your apache configuration (server httpd.conf or .htaccess file) ? <Directory "/var/www/html/example"> <FilesMatch index.php*> Order allow,deny Allow from all </FilesMatch> Order deny,allow Deny from all </Directory>

Categories : Linux

linux: get error 500 at running cgi-bin module in apache, not from ssh
Seems like wrong file/folder permissions. Try to set permission to 775 and ensure that the owner of the file and folder is correct. Set owner to the same your webserver (something like www-data or apache).

Categories : Linux

XAMPP, Apache - Error: Apache shutdown unexpectedly
Follow these steps: Open your XAMPP control panel then click its "Config" Choose the "Apache (httpd.conf)" and find this code below and change it into this one: #Change this to Listen on specific IP addresses as shown below #to prevent Apache from glomming onto all bound IP addresses. #Listen 0.0.0.0:80 #Listen [::]:80 Listen 80 # Dynamic Shared Object (DSO) Support Save it (Ctrl + S) After that, go back to the XAMPP control panel and click its config again. Choose "Apache (httpd-ssl.conf)", find this code below, and change it again: # Note: Configurations that use IPv6 but not IPv4-mapped addresses need two # Listen directives: "Listen [::]:443" and "Listen 0.0.0.0:443" # #Listen 0.0.0.0:443 #Listen [::]:443 Listen 443 Save

Categories : Apache

Trying to make apache camel to work in apache karaf
see this guide for general installation/configuration of Camel in Karaf: http://camel.apache.org/karaf.html otherwise, the camel-example-sql does build an OSGI bundle and can be installed using the following: osgi:install -s mvn:org.apache.camel/camel-example-sql/2.11.0

Categories : Maven

Hello World - Flask / Apache / mod_wsgi - no response from Apache
What ip does helloflask.mydomain.com point to? Try adding 127.0.0.1 helloflask.mydomain.com helloflask To your hosts file, and pointing your web browser at http://helloflask.mydomain.com

Categories : Python

Apache access logs - Is it possible to visit a page and not have apache log it?
If your box has been hacked, you may not be able to trust the logs - the hacker may have changed them. I think, if you want a definite answer, the best idea is to mirror your network port to another computer, and traffic dump until you see something suspicious, then look in the traffic logs to see what happened. Depending on how good the hacker is, you might get away with running a packet capture on the box in question - it might not get noticed. But take it with a grain of salt. The other possibility is that the hacker has manually set a cookie (assuming you use cookies for tracking logged in information). They will appear to "be logged in", without having logged in.

Categories : PHP



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.