Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save oviniciusfeitosa/8cb77bd6cc6bd3ace0b3576dc682a960 to your computer and use it in GitHub Desktop.
Save oviniciusfeitosa/8cb77bd6cc6bd3ace0b3576dc682a960 to your computer and use it in GitHub Desktop.
Docker - Replacing Apache DocumentRoot using `sed`.
   ENV APACHE_DOCUMENT_ROOT /var/www/mapasculturais/src

   RUN sed -ri -e 's!/var/www/html!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/sites-available/*.conf
   RUN sed -ri -e 's!/var/www/!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/apache2.conf /etc/apache2/conf-available/*.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment