httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Mehler <dave.meh...@gmail.com>
Subject Re: [users@httpd] Allowing users to edit web sites safely
Date Thu, 22 Dec 2016 15:08:53 GMT
Hello,

Thanks. I did mine a little different, but thanks to you I did get it.

One unrelated question, what's advantages/disadvantages are there
between Php 5.6 and Php 7?

Thanks.
Dave.


On 12/22/16, David Copeland <david.copeland@jsidata.ca> wrote:
> Hi Dave,
>
> Sure.
>
> Say the server has the name "server.domain1.com", and the user has an
> account on the server named "user". The server runs Linux (happens to be
> OpenSuse), Apache 2.4.23 and PHP7. The user can log into the server
> using ssh/scp. His site is served from "/home/user/public_html" and
> accessed as "www.domain2.com". The Apache2 vhost configuration looks
> something like the following.
>
> <VirtualHost *:80>
>     ServerName www.domain2.com
>     DocumentRoot "/home/user/public_html"
>     php_admin_value open_basedir /home/user
>     php_admin_value upload_tmp_dir /home/user/tmp_upload
>     php_admin_value session.save_path /home/user/sessions
>     php_admin_value include_path '.:/home/user/files/includes'
>     ErrorLog /home/user/log/error_log
>     CustomLog /home/user/log/access_log combined
>     HostnameLookups Off
>     UseCanonicalName Off
>     <Directory "/home/user/public_html">
>         Options +FollowSymLinks -Indexes
>         AllowOverride None
>         Require all granted
>     </Directory>
> </VirtualHost>
>
> Userdir access is also enabled. His site can be reached at
> "www.domain2.com" or at "server.domain1.com/~user" . This was done to
> allow the user to preview his site prior to activating the virtual host.
> The php_admin_value entries in the vhost helps to protect the rest of
> the server from the users site and having his own user account also
> isolates him.
>
> Dave C.
>
> On 21/12/16 08:30 AM, David Mehler wrote:
>> Hello,
>>
>> Thanks. Could you elaborate more on your solution? How are the site
>> urls formed? Is it domain.com or domain.com/~username?
>>
>> Thanks.
>> Dave.
>>
>>
>>
>
>
> --
> David Copeland
> JSI Data Systems Limited
> 613-727-9353
> www.jsidata.ca
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message