- Apache conf
- Enable URL with OVH
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
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