2 Virtual Hosts on OMV configuration

  • hello , I need 2 Virtual Hosts on OMV , I tried to this , I want to know if it is correct , because when I try to activate the second web site , i have this error :

    Code
    /etc/init.d/apache2 reload
    Reloading web server config: apache2[Mon Oct 29 16:32:07 2012] [warn] _default_ VirtualHost overlap on port 80, the first has precedence
    [Mon Oct 29 16:32:07 2012] [warn] _default_ VirtualHost overlap on port 80, the first has precedence


    1: I activated the plugin , and have enabled these options
    http://imageshack.us/photo/my-images/16/multiplehost.jpg/



    2 : I created the Web folder = Web


    3: I created two sub-folder in Web directory - (mysite1.com and mysite2.com)


    4: i Created 2 text file in etc/apache2/sites-available (mysites1.com ) and (mysites2.com)


    each file has this code : mysites1.com



    mysites2.com



    ssh connection


    Code
    a2dissite default


    Code
    a2ensite mysites1.com


    Code
    a2ensite mysites2.com


    Code
    /etc/init.d/apache2 reload
     /etc/init.d/apache2 restart


    I need mode rewrite for my Wordpress , so:


    ssh connection


    Code
    a2enmod rewrite


    Code
    a2enmod headers


    This is correct ?

    • Offizieller Beitrag

    Not sure but I think you have to have the ServerName mysites1.com line in each sites-available file.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • Zitat von "ryecoaaron"

    Not sure but I think you have to have the ServerName mysites1.com line in each sites-available file.


    I do not understand , which line?


    I tried to add this code in etc/apache2/httpd.conf

    Code
    NameVirtualHost *:80


    when I restart apache I have no error ,but works only one website .Any ideas

    • Offizieller Beitrag

    I compared your configs to mine and the ServerName line was the only one missing. According to the apache web site here, you have to have it. Mine is right before the DocumentRoot line in /etc/apache2/sites-available/mysites1.com

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • Hello ryecoaaron , thanks for help .


    My new file mysites1.com is



    i add this code in etc/apache2/httpd.conf

    Code
    NameVirtualHost *:80


    Code
    /etc/init.d/apache2 reload
    /etc/init.d/apache2 restart


    No error , but only one site works :oops: what is wrong?

    • Offizieller Beitrag

    Are there links in the /etc/apache2/sites-enabled directory? That would tell you if a2ensite worked. Other than that, I'm not sure. I might have to setup a test VM to try.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

    • Offizieller Beitrag

    Good to hear :)

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • Hello , I write in this post because I have an important question . I use the virtual host , to host my websites , this configuration is correct?



    In Website , I flagged this .

    • Offizieller Beitrag
    Zitat von "scream"

    works for you? I try and not work. sees only one site.


    That's not much to work with. Post your /etc/apache2/sites-available/ files. Did you enable them? Did you restart apache?

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • Hi everybody!


    Yes, I know - this is quite an old thread.


    But I have the request to host more than one blog with wordpress and I'd like to do this with omv.


    As omv now no longer uses apache but nginx am I'm quite a newbie into this, I'd like to know, how can I host multiple wordpress blogs on one omv-system (using virtual hosts or do you have a more elegant/simple way to do this?)?


    Thanks in advance for any help

    • Offizieller Beitrag

    Use the nginx plugin and follow these directions twice (only once for mysql).

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!