Skip to content

Instantly share code, notes, and snippets.

@VictorTpo
Last active August 29, 2015 14:25
Show Gist options
  • Save VictorTpo/365cab89898a29dfeebe to your computer and use it in GitHub Desktop.
Save VictorTpo/365cab89898a29dfeebe 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