To achieve that I use
- Dropbox => this will be used to synchronize all files to any computer
- Apache => You will need this because IIS not support user_dir mod
- PHP ( this will depend on what kind server-side language do you use)
For the first step install Dropbox on your computer. After that install Apache web server.
Now create directory public_html under your dropbox folder.
Dropbox folder at my computer located at "C:\Users\Ronaldo\Documents\My Dropbox" for newer version the dropbox folder located at "C:\Users\
Now uncomment this lines at httpd.conf
LoadModule userdir_module modules/mod_userdir.so
and
Include conf/extra/httpd-userdir.conf
now the edit the httpd-userdir.conf , here my httpd-userdir.conf looks like
# Settings for user home directories
#
# Required module: mod_userdir
#
# UserDir: The name of the directory that is appended onto a user's home
# directory if a ~user request is received. Note that you must also set
# the default access control for these directories, as in the example below.
#
UserDir "C:/Users/*/Documents/My Dropbox/public_html"
#
# Control access to UserDir directories. The following is an example
# for a site where these directories are restricted to read-only.
#
AllowOverride FileInfo AuthConfig Limit Indexes
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
Order deny,allow
Allow from 127.0.0.1
Allow from localhost
Deny from all
Order deny,allow
Allow from 127.0.01
Allow from localhost
Deny from all
restart the apache web server service. After that, access your home directory web, http://localhost/~username,
so for me it will be http://locahost/~ronaldo , after that put the website that you will develop under your public_html folder, which locate inside your Dropbox folder. Dropbox will synchronize every changes under it own directory.
NOTE: This is for development only..