• If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Announcement

Collapse
No announcement yet.

Problem with accessing a file using an Alias in the Apache config

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Problem with accessing a file using an Alias in the Apache config

    Hello,
    I created an app that put an icon on a grid that when clicked would take the URL string and display the pdf document in a new window. When I export the app to my production instance, it stops working. The pdf document was stored on a NFS mounted drive. So, if I go outside of Valence and type //192.168.3.4:7050/webrpt/pdfsample.pdf in a browser I get "NOT FOUND". If I type //192.168.3.4:7052/webrpt/pdfsample.pdf, it displays the document correctly. It seems to be a problem with Apache configuration. Except for the library names and the port numbers the configuration files seem to be the same. Is it common that Apache configuration between different instances can cause this kind of problem? I'm at the two day mark working on this and I'm not sure where to go from here. I'd appreciate if anyone has something I could try.
    Thanks,
    Bruce

  • #2
    For the instance where it's working, I assume someone updated the Apache configuration to allow access. Have you searched the configuration file for a Directory directive that controls access to /webrpt?

    Something like this:
    Code:
     Alias /webrpt /xyz/reports
     <Directory /xyz/reports>
        Order Allow,Deny              
        allow from all                
     </Directory>
    I suspect this directive is missing in your other instance, which could explain why it's not working. When updating the Apache configuration, ensure you make changes through the administrative interface at :2001/HTTPAdmin.
    Last edited by Johnny Major; 07-09-2025, 03:57 PM. Reason: Forgot to past alias

    Comment


    • #3
      Thanks Johnny!!! I had been editing the configuration file by choosing edit when doing a wrklnk command. When I used the admin interface at 2001:HTTPAdmin it showed me that there was a space (maybe hidden character) in front of the alias statements that I had added to the httpd.conf files. I took out the spaces and restarted the Valence interfaces and it all works !!!! Thank you so much. I owe you a steak dinner..

      Comment


      • #4
        Great, no problem, and I'm glad you have it worked out!!! Thanks for the steak dinner offer :-)

        Comment

        Working...
        X