[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Multiple Domains
David Sudarma schrieb:
>
> Need help setting up more than one domain name on my Pi3 webserver.
> I don't know which files to modify. I also have no ability to program.
> Please
> help me....... Thank you
Hi,
Your problem - you want to configure some home-directories for users on
your server, thus other people have access to the web-sites of these
users by a URL like this:
http://hostname/username/
Is this your problem? Then I can help:
0.)
Shut down the Pi3 server.
1.)
Edit the file "CONFIG.PI3" in your server's .\CONF directory:
Search the lines
# Mapping UserDirectory UserDirectoryRoot="/home/" \
# HTMLDirectory="/public_html"
These lines are comments - delete the # character.
2.)
Change the string UserDirectoryRoot="... into
UserDirectoryRoot="../home/" if you want to create the home directories
below the server's main directory or leave it as it is if you want to
create the home directories in the root of your drive.
3.)
Create the home directories i.e.: /home/username/public_html
either in your server directory or in the root of your drive
corresponding to your changes in the configuration of the server.
4.)
Test:
Create a file index.htm in one of the home/username/public_html
directories. Start your www-browser at your local machine during pi3 is
running and enter the URL:
HTTP://localhost/~username/ (don't forget the "~" tilda)
If everything is done correct you will see the contents of the index.htm
file. That's all.
Hope this is your solution
With greetings from Germany
Holger Zimmermann (Zimpel)