Need help finding a URL file path on a Red Hat server using virtual hosts

This is probably stupid simple for all of you but long story short, I have no alias bound to a web folder location I’d like to work on inside a Red Hat system using virtual hosts. I’d like to do development / testing before doing anything with an alias.

How can I access my web files without using an alias?

Take this as an example (a website / folder that exists on the system that works with its current alias):
https://blah.whatever.com

“blah” appears to be a folder path at /ux1/vhosts/blah

I can access that folder’s web stuff in my browser with no problem using “https://blah.whatever.com” but if I try to do something like “https://123.123.123.123/ux1/vhosts/blah,” I always get something like a “404 Not Found” response. I’m sure I’m doing something wrong as I’m an idiot with things like this but I always thought that even if virtual hosts are used, you could still resolve a GET request to a web location regardless of alias usage. Am I wrong in thinking that way?

Any clarification would be appreciated. I feel like an idiot. I might’ve had some bad coffee this morning…

1 Like

I figured out what was happening: the server configurations assigned an alias to the account I was using but due to my HOST file not assigning a correct DNS to the IP address of the system, I could never see the pages I was trying to work with. Once I changed that in my local HOST file, everything worked and now I can work on things until I deploy. :slight_smile:

4 Likes

Thanks for posting your solution, @Wolf_22! :slight_smile:

2 Likes

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.