|
In production we run tomcat behind apache, in development bare tomcat. How can I know inside the Servlet class if it is running behind apache or not?
Started by flybywire on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
It will be the IP of the ....
If it's connected via HTTP (mod_proxy), you can check request.getRemoteAddr() .
Since that is out of your control plus it may break if somebody else is using Apache as a frontend Apache is talking to Tomcat.
|
|
I am re-thinking our server's permission and group strategy. So I was trying to check what permissions was needed with the current setup for Apache to access the files.
I changed the permissions of index.php to 200 (only write for user). But Apache still...
Started by Znarkus on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at serverfault):
With apache, you start knowing your distribution....
On many linux distribution, apache is running as www-data by default
By it is hard to tell without was going on, short of having something like BSD process accounting running.
|
|
How do I start apache automatically when ubuntu server boots up
Answer Snippets (Read the full thread at serverfault):
However....
If you installed Apache via aptitude automatically already.
It's not working, try the following command:
sudo update-rc.d apache defaults
This will create the symlinks needed for Apache's init scripts to be called at boot.
|
Ask your Facebook Friends
|
Hi,
I need to start a PHP script via Apache - which will basically continue to run - it will be used for a small instant messaging widget - so it must continually run to update other users on new messages. What timeout features or other barriers should...
Started by codingfloor on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Not want to keep the PHP script running because:
anything on the page after the widget.
|
|
I have a Windows 2003 server and I run IIS on it. I want to run php on the server so I can host a drupal site. I wish to host the site using apache so that I can have clean URLs. Is it possible to run IIS and Apache? Would there be any tips that you would...
Started by keith on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at serverfault):
Everything except, say, /myIISApp/ would run through ApacheYou won't be able to have them....
Let's say you want everything to run through Apache, with the exception of a few url's you want to run on something else (say, :81).
|
|
I'm running a Django app on Apache + mod_python. When I make some changes to the code, sometimes they have effect immediately, other times they don't, until I restart Apache. However I don't really want to do that since it's a production server running...
Started by ibz on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Or
If you don't want to kill existing....
I've heard that there is a trick that setting Apache's max instances to 1 so that every code change is reflected immediately--but because you said you're running other.
Requests with multi-threading.
|
|
My Apache server runs on some non-default (not-root) account. When it tries to run a python script which in turn executes a subversion check-out command, 'svn checkout' fails with the following error message:
svn: Can't open file '/root/.subversion/servers...
Started by victorz on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
It sounds like the environment you apache process is running under is a little unusual guess if you are ....
Try granting the Apache user (the user that the apache service is running under) r+w permissions on that file.
|
|
How can I make it appear as though I'm not running Apache? I figure the best way is to appear as though it is another type of httpd, like lighthttpd or iis. I know that by using mod_security you can change your server signature into anything:
SecServerSignature...
Started by unkown on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at serverfault):
Specify your....
Ship logs off to another host and do, etc.).
Run apache with a few modules loaded as possible.
One can tell that Apache is being run from the style and content of the stock error pages (404, 500 reveals itself.
|
|
I have just installed nginx and apache on a dedicated server with redhat, how ever when I go to http://65.111.167.39 I get a connection failure. I tried changing nginx port con conf, but it didn't work neither.
Both services are running:
/etc/init.d/httpd...
Started by juanefren on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at serverfault):
Run a netstat so you can be sure the service is actually bound to the ....
You may want to check if the default firewall is running:
iptables -nL
Sounds simple but I've seen many people run in circles before remembering to check this.
|
|
Hi guys!
I'm trying to run an embedded ApacheDS in my application. After reading http://directory.apache.org/apacheds/1.5/41-embedding-apacheds-into-an-application.html I build this:
public void startDirectoryService() throws Exception { service = new...
Started by cringe on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Here is an abbreviated version of how we use it:
File workingDirectory = ...; Partition partition = new JdbmPartition(); partition.setId(...); partition.setSuffix(...); DirectoryService directoryService = new DefaultDirectoryService... .
The default port for LDAP is 389.
|