Skip to content

Instantly share code, notes, and snippets.

@marinados
Forked from VictorTpo/new_website.md
Created July 17, 2015 08:29
Show Gist options
  • Save marinados/a63218819594f4dc23cc to your computer and use it in GitHub Desktop.
Save marinados/a63218819594f4dc23cc to your computer and use it in GitHub Desktop.
  • Apache conf
  • Enable URL with OVH

Apache conf

cd /etc/apache2/sites-available

touch my-url.domaine.com.conf

sudo vi my-url.domaine.com.conf

<VirtualHost *:80>
  ServerName my-url.domaine.com
  DocumentRoot /my/path/app/current/public
  PassengerAppEnv production # optional
  <Directory /my/path/app/current/public>
    AllowOverride all
    Options -MultiViews
  </Directory>
  ServerSignature On
</VirtualHost>

sudo a2ensite my-url.domaine.com.conf

sudo service apache2 reload

Enable URL with OVH

Click on domain (my-url.domaine.com).

Go to Zone DNS

item = list.include?(my-url.domaine.com) ? edit : create

item.ttl = 0
item.type = A
item.target = server.ip

For the www.my-url.domaine.com :

item.ttl = 0
item.type = CNAME
item.target = my-url.domaine.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment