I'm a student developer working for a college doing dev work for 1 department (~11 sites).
The current workflow is as follows:
- SFTP into the staging server
- edit files
- when done, use a web utility to "transfer" files form staging to live production server.
This is incredibly tedious, and I'd prefer to setup a local LAMP environment to develop, then rsync the changed files up to the staging, then use the web utility to transfer to production.
I'm unsure how to go about replicating the domain structure of the server, as one server handles many 2nd-level domains.
server directory structure:
/
apache/
etc/
web_www/
home/
w-abc/
www/
index.php
above illustrates the directory structure of the server. If I wanted to get to index.php
of site w-abc
on the staging server, I would type into my browser
www-staging.universityName.edu/mainDepartment/subDepartment/index.php
OR
www-staging.universityName.edu/~w-abc/index.php
of course, there are many many domains inside of the /web_www/home/
directory, with a similar naming structure (w-abc
, w-123
etc)
How can I map my local server to a similar structure? I would like to be able to have the exact same structure, just locally. So I'd like to be able to go to http://localhost/mainDepartment/subDepartment/index.php
and http://localhost/~w-abc/index.php
and have it be the same thing.