tarea regex

Mar 6th, 2021
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Con grep y expresiones regulares:
  3. # Eliminar lineas que comienzen con "espacios" y continuen con "#"
  4. # Eliminar lineas que comienzen con "#" y continuen con cualquier caracter
  5. # lograr esto en un solo comando y un conjunto de expresiones
  7. <VirtualHost *:80>
  8. # The ServerName directive sets the request scheme, hostname and port that
  9. # the server uses to identify itself. This is used when creating
  10. # redirection URLs. In the context of virtual hosts, the ServerName
  11. # specifies what hostname must appear in the request's Host: header to
  12. # match this virtual host. For the default virtual host (this file) this
  13. # value is not decisive as it is used as a last resort host regardless.
  14. # However, you must set it for any further virtual host explicitly.
  15. #ServerName
  16. ServerAdmin webmaster@localhost #esto es un comentario
  17. DocumentRoot /var/www/html
  18. # Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
  19. # error, crit, alert, emerg.
  20. # It is also possible to configure the loglevel for particular
  21. # modules, e.g.
  22. #LogLevel info ssl:warn
  23. ErrorLog ${APACHE_LOG_DIR}/error.log
  24. CustomLog ${APACHE_LOG_DIR}/access.log combined
  25. # For most configuration files from conf-available/, which are
  26. # enabled or disabled at a global level, it is possible to
  27. # include a line for only one particular virtual host. For example the
  28. # following line enables the CGI configuration for this host only
  29. # after it has been globally disabled with "a2disconf".
  30. #Include conf-available/serve-cgi-bin.conf
  31. </VirtualHost>
  32. # vim: syntax=apache ts=4 sw=4 sts=4 sr noet
RAW Paste Data