I'm running Ubuntu 11.10 x64 Server, with apache2 installed. The setup is pretty much default configuration.
I have a few questions about;
DocumentRoot
/Static IP
/Connect from LAN
/SSH or FTP?
/Firewall ports services
I changed the
default
DocumentRoot location in the configuration file from sites-available to/srv/www/000
from/var/www
.Even though I changed
DocumentRoot
to the new location, in that same .conf file there are tags with<directory /var/www/> </directory>
which were there by default, should I correct this, or should I only worry about changingDocumentRoot
.- How can I change my ip address to a non-DHCP static ip? (I'm talking LAN) I want to know how I can connect to Apache server from another computer on LAN, but also make sure Apache isn't reachable from WAN. (I'm not sure if it could be even be reach from WAN)
- Its my first time really messing with the configuration of Apache, I
usually leave it at its defaults and just mess in
/var/www
. Since I'm not using a GUI or web browser, I can't program and check my work from the local machine, I need to access the webserver from another computer on LAN, how can I do this? - I have no experience setting up or using SSH, but I'd like to create a group for SSH put my user in it, change the permissions for
/srv/www/000
for this group to edit only and allow SSH to/srv/www/000
or, should I try installing an FTP server? - If the only services that will be running on this server are
apache2
,php5
,mysql
,SSH
orFTP
. How can I check for other services that I might not need, and check for ports which are opened and I might not need running. I'm not going to make this server public to the web, but I'd like the experience of locking it down the right way anyway.
Thank you for reading - I apprentice any advice.