apache

Java Tomcat web form submission tries to download foo.do entry text/x-server-parsed-html

Web form submssion tries to download foo.do (for example). This downloaded form is the "thanks for submitting" the user normally sees after submission. The email that this page sends comes through OK. Both the shtml from which the form is submitted and the response that tries to download have a meta content tag of text/html. I havent g...

PHP, LDAPS, APache and Multiple Server Certs

OK, ladies and gentlemen. If you could just read the whole thing before asking "Why would you want to do that!?!", I'd be much obliged ;) I am writing a PHP script to pull information from an LDAP server over LDAPS. I am using PHP 5.3, OpenLDAP and OpenSSL 0.9.7l (28 Sep 2006) and Apache 2.2 on a Windows 2003 server. I have one instanc...

keep alive feature in .htaccess

hi i want to use keep-alive feature of apache how can i use that with my host (.htaccess) and what should be the best values for the parameters like KeepAliveTimeout Thanks ...

Apache fails when I pass an URL as an argument

Hey everybody, Im really confused about this problem. Ill try to describe it: The problem is: http://mydomain.com/somedir/somephp.php?arg1=value&arg2=http://otherdomain.com&arg3=http://othertoo.com/somepath/something... totally fails. With and without url encode. My site reads in everything after mydomain.com/everything, except...

Files appending instead of overwriting on upload (SFTP/SSH2)

I have been having weird FTP issues on certain VPS servers. I am not the one who set this up but could request a change if I find out the issue is on the server. Not sure if it is my FTP Program (CuteFTP) or the server it is on. Not to familiar with servers and settings but this seems to be what is happening (I am using the protocol type...

Starting apache problem "requested operation has failed"

Whenever I try to start apache server on my local development computer I get prompted an error message as follows: The requested operation has failed httpd.conf was not tampered with. How do I set it up to work? ...

Eclipse dynamic web project - MappingNotFoundException

I have a Eclipse Dynamic Web Project which host a simple servlet and runs on Tomcat. I use Hibernate within - I have classes that map to database tables and hbm.xml files for them within my project. Everything works fine - I can use Hibernate from Servlet and modify database tables through classes. But now I want to move my "model" (Java...

is this true? "Gzipped items will not have the same etags (even if the content did not change)"

Is it true that we should disable etags if we are compressing with apache because the etags will be different each time? Is it true for deflate too? Thanks ...

Apache base URL for subdirectory?

I've got my site in htdocs/mysite which I'll be using to test/develop my website locally. Problem is, now all my URLs in my HTML/CSS need to begin with mysite whereas they won't on the product environment. What's the best way around this? Is there something I can add to httpd.conf to tell it anything in mysite should be relative to mysit...

Question on Running mod_perl + apache + Windows

I had developed web applications under environment mod_perl + Apache + Linux. Now, I want to deploy a web application solution to my client, under Windows. I was wondering any problem you guys encounter, when running mod_perl + Apache + Windows? (1) Can I get Perl additional library (CPAN?), and being used in my web application easily...

What is the best way to do server-side output caching in PHP?

I have a pretty complicated index.php now, and I would like to only run it once every hour. What is the best way to achieve this? Some ideas I've had Put it in APC with apc_store($page, 60*60*) - I feel this isn't what APC is for and will probably be doing something bad to the other parts of my site Save the output to a filesystem som...

WSDL2Java tool error Apache CXF

Hello, We get the following error when we use WSDL2Java tool to generate stubs. The webservice is up and running. WSDLToJava Error: org.apache.cxf.wsdl11.WSDLRuntimeException: Fail to create wsd l definition from : http://scheduler.heartbeatsoftware.com/scheduler/WebServices /SampleSNMWebService?wsdl Caused by : WSDLException: faultCod...

Modifying html repsonse from a webserver before it reaches the browser using a webserver plugin?

The question is as simple as the title. I have a webapp (I have no clue as to what technology it was built on or what appserver it is running on). However, I do know that this webapp is being served by an Apache Server/ IIS Server / IBM Http Server. Now, I would like to have a plugin/ module / add-on at the web-server end, which would pa...

Apache not loading Xdebug, but does when started from the Command Line

I know that this sounds odd, but believe me, it's what is happening. Here are my system settings: Windows7 Apache 2.2 PHP 5.2.12 Xdebug 2.0.5 I have XDebug configured in my PHP.ini file. When I run php -m, I do in fact see that Xdebug is loaded. Now, if I start Apache AS A SERVICE (or by the Apache Monitor), and run phpinfo(), it is ...

Apache/PHP serving file multiple times

I have a system with a download.php page. The page takes and id and loads a file based on from the DB Record and then serves it up. I've noticed a couple instances where files are requested multiple times in short time spans (20ms). Times that are too quick for human input. There are plenty of instances where the downloader functions fin...

Parsing HTTP_RANGE header in PHP

Is there an existing way to parse the HTTP_RANGE header correctly in PHP? Thought I'd ask here before re-inventing the wheel. I am currently using preg_match('/bytes=(\d+)-(\d+)/', $_SERVER['HTTP_RANGE'], $matches); to parse the header but that does not cover all possible values of the header so I am wondering if there is a function ...

How can I configure Apache and LDAP to allow a second authentication attempt?

I just got Apache/LDAP authentication working (almost) on a new SLES 10 server. When I visit one of the protected areas on my website I get the Apache Authentication pop-up window where I can LDAP authenticate to gain access to the protected folder. But I'm getting wierd behaviour. If I type in a valid user but the incorrect passwor...

How do I modify Request_URI using Apache or PHP?

I'd like some help with some URL rewriting magic. I am having trouble modifying the Request_URI variable. I would like to switch between two sites http://host.com/alpha and http://host.com/beta. They are both handled by the same php script. This script is http://host.com/index.php. The index.php expects to be given a GET variable SITE ...

.htaccess rules with a second domain to use a different directory than root?

Domain1 uses root / I am trying to have Domain2 use /domain2 When I visit domain2.com, I want it to appear as domain2.com and use the files from /domain2 instead of root / The closest I got was: RewriteEngine on RewriteCond %{HTTP_HOST} ^domain2\.com$ [NC] RewriteRule ^/?$ /domain2/$1 [L] But if I try to go to some page at doma...

Best way to manage long-running php script?

I have a PHP script that takes a long time (5-30 minutes) to complete. Just in case it matters, the script is using cUrl to scrape data from another server. This is the reason it's taking so long; it has to wait for each page to load before processing it and moving to the next. I want to be able to initiate the script and let it be unti...