Avatar of rjohnsonjr
Flag for United States of America asked on

Is there a way to mock windows file structure paths


Is there a way to mock this in Linux:


in linux would be similiar to this


The issie here is I want to switch to linux OS for my work station, but my client's servers are Windows Based.  I was hoping to do the above so I did not have to worry about changing the paths every time I work on the files and upload to the production servers.

LinuxLinux DistributionsSystem Programming

Avatar of undefined
Last Comment

8/22/2022 - Mon

I'm assuming this is for apache's config file??

I'm not certain as I haven't installed Apache under Windows but I believe there are dependency differences (module extentions etc) so you really should use a fresh Linux config file.

"IF" all you want to do is copy over virtual domain paths you could place these in a text document then run find & replace

: Find c:\inetpub\wwwroot\
: Replace /home/domains/

Upload the file to your sever, open your httpd.conf and read the file into it via pico, vi, or if using a GUI editor, copy/paste

 If you're going to be testing you should make sure that apache on your Linux box is configured with the same features as Apache on the Windows server(s)

You don't tell for what files you need this:

Having \ in a url is always a bad idea (tm).
(so much for htm[l] type files) Most non IE based browsers treat a \ as an escape for the next character.

for php, perl etc. they will convert filenames to some extent,  / to \ if the host requires it.
also you could use variables to specify the path part and include that from a platform dependent file.
You might need to create equal pathnames or translate them like the previous post mentions.

Config files could be made platform independent to some extent and use an include to specify plafrom specific stuff.

If you need more details information then please geive more information on what you exactly want.


I am talking about insides of scripts that require the path to upload files.  PHP, CF, Etc..

All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question