LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Apache Share server - how to configure (https://www.linuxquestions.org/questions/linux-server-73/apache-share-server-how-to-configure-920447/)

dlugasx 12-25-2011 06:26 AM

Apache Share server - how to configure
 
Hi Gurus,

I`m trying to find a tutorial about configuration of Apache Share Server - one server with multiple accounts for different users. Does anybody knows how to do it ?

How to secure such a server ?

Apache has an access to all applications, so somebody could execute php code and read sensitive informations from other users. How to prevent this ?


regards

Dlugasx

routers 12-26-2011 01:33 AM

Quote:

I`m trying to find a tutorial about configuration of Apache Share Server - one server with multiple accounts for different users. Does anybody knows how to do it ?
if you search google there many tutorial available ,
if you want to make one server with multiple acc aka multiple domain user
you have to create VirtualHost container

here is example; should be in your httpd.conf or any .conf in /etc/httpd/conf.d
and you must add user respectively in the system

<VirtualHost *:80>
ServerName unixman.pluto.com
ServerAdmin admin@unixman.pluto.com
DocumentRoot /home/unixman/www
TransferLog /home/unixman/logs/access-log
</VirtualHost>

<VirtualHost *:80>
ServerName linuxman.mars.com
ServerAdmin admin@linuxman.mars.com
DocumentRoot /home/linuxman/www
TransferLog /home/linuxman/logs/access-log
</VirtualHost>

Quote:

How to secure such a server ?
secure server or secure apache?

best way is hide your apache version
set below in your httpd.conf

ServerSignature Off
ServerTokens Prod

Quote:

Apache has an access to all applications, so somebody could execute php code and read sensitive informations from other users. How to prevent this ?
most important part is your programmer must be error free coding

ps, sorry my english :)

cbtshare 12-26-2011 03:40 AM

also to secure apache, turn off public directory access.~public_html


All times are GMT -5. The time now is 07:49 PM.