Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2024-04-27, 22:27:30

Author Topic: Custom VirtualHosts?  (Read 4862 times)

0 Members and 1 Guest are viewing this topic.

Offline gorgon

  • Junior Member
  • *
  • Posts: 19
  • Karma: +0/-0
    • View Profile
Custom VirtualHosts?
« on: 2013-05-20, 16:14:31 »
Hello,

Previous Kloxo supported custom virtualhost confs (home/apache/conf/). Like I could map my subdomain to directories I wanted without creating a domain in kloxo panel (avoiding awstats, mail) and just have a simple virtual host.

But with Kloxo-MR 6.50 (18 May), If I create a custom VirtualHost, all the websites in Kloxo get mapped to the new conf.

Custom VirtualHost Example:
Code: [Select]
<VirtualHost
        xx.xxx.xxx.xx:80
        xx.xxx.xxx.xx:443
               >

        ServerName custom.website.com
        ServerAlias www.custom.website.com

        DocumentRoot "/home/some_directory/public_html"
        ErrorLog "/home/something/access_error.log"
</VirtualHost>
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Custom VirtualHosts?
« Reply #1 on: 2013-05-20, 19:29:43 »
So, what's different thing between Kloxo and Kloxo-MR about web config?.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline gorgon

  • Junior Member
  • *
  • Posts: 19
  • Karma: +0/-0
    • View Profile
Re: Custom VirtualHosts?
« Reply #2 on: 2013-05-20, 19:36:54 »
Quote from: "MRatWork"
So, what's different thing between Kloxo and Kloxo-MR about web config?.

I have no idea.

I am migrating from Kloxo (Lxcenter) to fork MR. Currently I have few subdomains which are not installed in kloxo but mapped inside virtualhosts. But these virtualhosts don't work as intended in Kloxo-MR with apache.

But with nginx, it's working. I am sure that you reproduce this error with MR and Official, but I just don't know how it happens with apache.
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Custom VirtualHosts?
« Reply #3 on: 2013-05-20, 19:52:54 »
You mean custom subdomain always 'custom.' prefix (example, if domain as domainxxx.com and then custom subdomain as custom.domainxxx.com)?.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline gorgon

  • Junior Member
  • *
  • Posts: 19
  • Karma: +0/-0
    • View Profile
Re: Custom VirtualHosts?
« Reply #4 on: 2013-05-20, 20:23:14 »
Quote from: "MRatWork"
You mean custom subdomain always 'custom.' prefix (example, if domain as domainxxx.com and then custom subdomain as custom.domainxxx.com)?.

No MR,



As you can custom.conf is not generated by kloxo, but written by myself. Works in 6.1.12 but in 6.5's apache, it doesn't work.
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Custom VirtualHosts?
« Reply #5 on: 2013-05-20, 21:01:03 »
Kloxo-MR different way for handling config. Kloxo-MR using 'template-based' config.

If you need/want modified config, copy /home/apache/tpl/domains.conf.tpl to custom.domains.conf.tpl and then modified this custom file. You can see another conf.tpl files for different purpose.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline gorgon

  • Junior Member
  • *
  • Posts: 19
  • Karma: +0/-0
    • View Profile
Re: Custom VirtualHosts?
« Reply #6 on: 2013-05-21, 11:11:40 »
Alright, thanks.
« Last Edit: 1970-01-01, 01:00:00 by Guest »

 


Top 4 Global Search Engines:    Google    Bing    Baidu    Yahoo

Page created in 0.064 seconds with 18 queries.

web stats analysis