Skip to content

The script creates an Apache's virtualhost and adds a local website to the hosts file, if you create a dir in the defined dir. It do like on OpenServer for Windows, or Valet.

License

Notifications You must be signed in to change notification settings

abicorios/serve_local_websites

Repository files navigation

serve_local_websites

The script creates an Apache's virtualhost and adds a local website to the hosts file, if you create a dir in the defined dir. It do like on OpenServer for Windows, or Valet. A name of a directory is a name of a local website.

System

It is developed at Ubuntu 19.10

Use

Edit the serve_local_websites.sh script, define the main_dir variable (a path to a directory with all local websites, it can be in a home directory). So install by

./install.sh

Now a service is installed and running, also enabled at system start up. You can manage it by

systemctl status serve_local_websites
sudo systemctl enable serve_local_websites
sudo systemctl disable serve_local_websites
sudo systemctl start serve_local_websites
sudo systemctl stop serve_local_websites

You can uninstall it by

./uninstall.sh

About

The script creates an Apache's virtualhost and adds a local website to the hosts file, if you create a dir in the defined dir. It do like on OpenServer for Windows, or Valet.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages