(SOLVED) Add the custom VHOST

Got a feature request? Great! Post your ideas here!
yakatape
Posts: 6
youtube meble na wymiar Warszawa
Joined: Mon Jun 27, 2016 6:39 am

(SOLVED) Add the custom VHOST

Post by yakatape »

Hello,

I've noticed on the interface Web Server we can create Some VHost etc..
But we can't manage for exemple the vhost 80 or 443 or other vhost who already "EXIST" . exemple By default the vhost 80 and 443 follow the Web folder.

If i want add an other Vhost on 80 or 443 to a different folder with a Specific ServerName value this isn't possible from the interface ADM. Maybe should be a nice implementation because actually for do this custom configuration we have to edit directly the apache conf files ?

like this (exemple on https) - @default-ssl :

Code: Select all

<IfModule mod_ssl.c>
<VirtualHost *:443>
        ServerName wehack.mondomaine.com
        DocumentRoot "/volume1/Web"
        SSLEngine on
</VirtualHost>
<VirtualHost *:443>
        ServerName img.mondomaine.com
        DocumentRoot "/volume1/Public"
        ScriptAlias /cgi-bin/ "/volume1/Public/cgi-bin"
        SSLEngine On

        <Directory "/volume1/Public">
           Options Indexes FollowSymLinks MultiViews
           AllowOverride All
           Order Allow,Deny
           Allow from all
   </Directory>
</VirtualHost>
</IfModule>
Because if i try to create a vhost from ADM interface with img.mondomaine.com over the https(port 443) we will get an error like "vhost already exist" because the adm check only the vhost existence and don't make a simply "concatenation" (dunno if you understand what i mean rha.. :roll: )
damien599901
Posts: 578
Joined: Mon Dec 30, 2013 2:53 am

Re: Add the custom VHOST

Post by damien599901 »

@yaktape

solved by your own tutorial https://getbrain.fr/gestion-vhost-nas-asustor/
Storage: AS7004T & AS5002T
Network: FREEBOX REVOLUTION V6
Laptop: Apple MACBOOK Pro OS X El Capitan & Windows 10
Media Player: ASUSTOR NAS with Kodi 16 Beta & HD_Engine 1 (thanks Fathe_Mande)
Portable: iPhone 6S Plus, iPad Mini 2 & iPad Air