Best practice for web server setup?

Hal Burgiss hal at burgiss.net
Thu Feb 3 01:47:54 UTC 2011


On Tue, Feb 1, 2011 at 2:25 PM, Wipe_Out <wipe_out at users.sourceforge.net>wrote:

>
> I am wondering if anyone can point me to a "best practice" guide for
> setting up my company web server..


The base Ubuntu install should do most everything you want. Its secure,
sane, and has everything you need to tweak the configuration easily
available. There are plenty of docs floating around on how to set up named
virtual hosts. That would get you started.

For development environment, I just use the same host and same
configuration, and limit access via Apache access control mechanisms,
usually using .htaccess files. Any directory can be password protected, but
for this kind of thing a simple ip address restriction is quicker and
easier.

Keep your installation updated. Be selective on what other public services
you run. Mysql and sendmail/postfix are good to have, but only need a
localhost type config.



The basics are that I am setting up an Ubuntu 10.04 web server on a VPS
> hosted on the internet.. The server will run our internal web based
> applications and database being accessible from all our business locations..
> It will also at some point in the future host the company website with a
> customer portal so customers can manage their requirements themselves (in
> other words the site will link to the company database on the server)..
>
> In addition to this I want to setup a development site for continued
> development and testing of the applications and website that can then be
> copied to the live site when testing is complete..
>
> Setting up the Ubuntu box and using "tasksel" to create the LAMP server is
> easy enough.. What I am looking at more specifically is setting up the
> virtual hosts for the various sites..
>
> Is it recommended to create user accounts for each function, i.e apps, web
> and dev, and then setup a public_html directory in each home directory and
> get apache to serve the files from there? or should I just create
> subdirectories of /var/www and put them all there to avoid problems running
> the sites (permissions etc.. )??
>
> Any suggestions or things to look out for would be appreciated..
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>
>


-- 
Hal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20110202/870b7237/attachment.html>


More information about the ubuntu-users mailing list