Skip to content

kobiShenkar/vagrant-ubuntu-nginx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Requirements

  1. Git: https://git-scm.com/
  2. Vagrant:https://www.vagrantup.com/
  3. Oracle VM VirtualBox manager: https://www.virtualbox.org/

How to install & run

  • Clone project
$ git clone https://github.com/kobiShenkar/vagrant-ubuntu-nginx.git
  • Enter the vagrant-ubuntu-nginx folder
$ cd vagrant-ubuntu-nginx
  • Run Vagrantfile
$ vagrant up
  • Enter the served website by nginx
host machine: localhost:8080
guest vm: $ curl localhost
  • Make ssl certificate
$ sudo mkdir /etc/nginx/ssl
$ openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/nginx/ssl/private.key -out /etc/nginx/ssl/public.pem
  • copy config file
$ vim /etc/nginx/conf.d
$ copy here default.conf

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published