Jump to content
The Uniform Server Community
vanimurarka

different www location

Recommended Posts

I want all my website files to be in a different location, not under c:\uniserver\www. My website files are stored in a folder inside my Dropbox folder. Is there a way I can point Uniserver Apache to go to that folder, instead of c:\uniserver\www ?

 

Thanks ...

Share this post


Link to post
Share on other sites

I have not used Dropbox however try the following:

Create a new directory in your dropbox folder name it www
I will assume the path is C:\Users\fred\Dropbox\www it will depend where you installed Dropbox.

Using the above information eidit Apache configuration file
C:\UniServer\usr\local\apache2\conf\httpd.conf

Change: DocumentRoot "C:/UniServer/www"
To: DocumentRoot "C:/Users/fred/Dropbox/www"


Change:

Options Indexes Includes
AllowOverride All
Require all granted


To:

Options Indexes Includes +FollowSymLinks
AllowOverride All
Require all granted


Copy the content of folder C:\UniServer\www to folder C:\Users\fred\Dropbox\www

All the best
Ric

Share this post


Link to post
Share on other sites

It would be nice if this was a feature, so when you add vhost you could either write the foldername fred123 and vhost/fred123 would be created.
But when you write a specific path for example C:\Users\fred\Dropbox\www it would detect the C: or similar then make the changes to necessary places to make that specific vhost documentroot instead of the manual tweak suggested.

What do you think Ric, would it be difficult to implement?

 

/Anthony

Share this post


Link to post
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...

×
×
  • Create New...