Jump to content
The Uniform Server Community

realtive path, starting from us-root


Humbug
 Share

Recommended Posts

Hi,

 

uniserver is great for use it on a usb-stick. But sometimes i wanna change the lcoation of uniserver-folder, and so i have to change all paths in the configs, regarding to the new location of US. When i create my apache-configs, there has to be absolute path to documentroot (e.g. C:\webs\testweb). So i created an "Unicontroller_start.cmd", which sets an variable:

@echo off
set webspath=%CD%
start UniController.exe

 

It`s located in US`s root and it sets webspath=localtion_of_file, so i can use that variable in my apache configs (configs are located and included from "US-root/Extra/configs/*.conf"):

<Directory "${WEBSPATH}\Extra\webs\moodle">

 

Folder "Extra" is also located in US-rootdirectory, so all webs stored in that folder should work, no matter from which location US is started. Moodle is a bad example, because it uses a absolute path for stored moodle_data, so that`s another story.

So, would you pls add an config-switch or anything like that which can be set to make it easier to run webs from any direction without changing documentroot-paths in several configs?

Or is there any option to use that "feature" with US-integrated tools or settings which i didn`t find?

 

Thx :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...