File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other Java Products and Servers and the fly likes with change in document root dir, documents are not getting delivered Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Other Java Products and Servers
Bookmark "with change in document root dir, documents are not getting delivered" Watch "with change in document root dir, documents are not getting delivered" New topic
Author

with change in document root dir, documents are not getting delivered

nirjari patel
Ranch Hand

Joined: Apr 23, 2009
Posts: 369
I have phpTest.html as coded below. I have phpTest1.php in action attribute in it. This phpTest.html and phpTest1.php are placed in path "C:/Users/nirjari/Desktop/all text files/HTML Files/" instead of default path which is "C:/wamp/www/"

In httpd.conf below, I have modified document root as "C:/Users/nirjari/Desktop/all text files/HTML Files/" instead of default path of "C:/wamp/www/" When I use send a request for phpTest.html , I dont get the page but instead of that O get 404 error message. Why is that ? I have changed document root and I have required files in new document root , then why apache server does not deliver this file ? When I am using default document root "C:/wamp/www/" server delivers document. So what do I need to change in order to deliver files by server ? With the changes I made is document root not changed ? Do I need to make any further changes ? Or can documents be delivered by default document root only ?
Thanks
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19655
    
  18

This isn't Tomcat related in any way. Moving to a more appropriate forum.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
nirjari patel
Ranch Hand

Joined: Apr 23, 2009
Posts: 369
I did not see any Apache forum, that is why I posted here.

Please let me know, where are you moving this post to ?

Thanks
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: with change in document root dir, documents are not getting delivered
 
Similar Threads
apache (tomcat) not parsing XML file?
mail() is not working inn PHP script
First script for PHP is not working
Problem with session stickyness on weblogic 9.2.3 with apache 2211 proxy plugin
Apache HTTP Server is not responding on 100 User Load