Jump to content


Photo

different www location

Apache configuration

  • Please log in to reply
3 replies to this topic

#1 vanimurarka

vanimurarka

    Newbie

  • Member
  • Pip
  • 2 posts
  • Main OS: Windows 7

Posted 08 September 2013 - 04:21 AM

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 ...



#2 Ric

Ric

    Project Manager

  • Admin
  • PipPipPipPipPip
  • 1,535 posts
  • Gender:Male
  • Location:Cambridge,UK
  • Interests:Electronics
    Internet in general
    Open source projects
  • SourceForge IDmpgcan
  • Wiki ID: Ric
  • Main OS: Windows XP

Posted 08 September 2013 - 07:21 AM

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:
<Directory "C:/UniServer/www">
   Options Indexes Includes
   AllowOverride All
   Require all granted              
</Directory>

To:
<Directory "C:/Users/fred/Dropbox/www">
   Options Indexes Includes +FollowSymLinks
   AllowOverride All
   Require all granted              
</Directory>

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

All the best
Ric



#3 vanimurarka

vanimurarka

    Newbie

  • Member
  • Pip
  • 2 posts
  • Main OS: Windows 7

Posted 08 September 2013 - 11:40 PM

Thank you so much. It worked beautifully.



#4 AnthonyH

AnthonyH

    Newbie

  • Member
  • Pip
  • 1 posts
  • IRC Nickname: ACHD
  • Main OS: Windows 8

Posted 19 May 2014 - 03:39 AM

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






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users