Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7964491
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T05:54:14+00:00 2026-06-04T05:54:14+00:00

I want to add Wildcard to DNS in my VPS (for setup WordPress3.3.2 multisite).

  • 0

I want to add Wildcard to DNS in my VPS (for setup WordPress3.3.2 multisite). I have Kloxo, and when i want to add it from Manage DNS ( in Domain Adm ), i face with this error.

Alert: invalid_subdomain 

Also i removed:

// Validates subdomain
if (!preg_match("/^(([a-zA-Z]|[a-zA-Z][a-zA-Z0-9\-]*[a-zA-Z0-9])\.)*([A-Za-z]|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$/", $param['hostname'])) {
throw new lxexception('invalid_subdomain', 'hostname');
}

from /usr/local/lxlabs/kloxo/httpdocs/htmllib/lib/dns/dnsbaselib.php, but now sub-domains shows my IP address home.
I want to setup it for this domain:310blog.com ,and my ip server is 178.162.231.63. ( for example when i make a sub-domain : http://saman.310blog.com/, it shows Kloxo default page )

How can i fix it?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T05:54:15+00:00Added an answer on June 4, 2026 at 5:54 am

    I solved it! if you want to add a wildcard into your Kloxo admin. You should follow these steps:

    1. In your admin panel: Domain Adm->Manage DNS->Add A, in Hostname field you should enter:

    *

    And in Value field:

    YOU_IP_ADDRESS

    When you press add, maybe you face with invalid_subdomain error. If this happens, you should edit “dnsbaselib.php” in /usr/local/lxlabs/kloxo/httpdocs/htmllib/lib/dns/dnsbaselib.php, from your server, and remove this condition from line 104,

    // Validates subdomain
    if (!preg_match("/^(([a-zA-Z]|[a-zA-Z][a-zA-Z0-9\-]*[a-zA-Z0-9])\.)*([A-Za-z]|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$/", $param['hostname'])) {
    throw new lxexception('invalid_subdomain', 'hostname');
    }
    

    After that retry first step.

    1. After step one, you need to edit httpd.conf in this path: /etc/httpd/conf/httpd.conf, and add this :
    <VirtualHost YOUR_IP_ADDRESS:80>
    ServerName YOUR_DOMAIN.com
    ServerAlias *.YOUR_RDOMAIN.com
    DocumentRoot /home/DOMAIN_DIR/YOUR_DOMAIN.com/
    DirectoryIndex index.php index.html index.shtml index.htm default.htm Default.aspx Default.asp index.pl
    ScriptAlias /awstats/ /home/kloxo/httpd/awstats/wwwroot/cgi-bin/
    SuexecUserGroup USERNAME USERNAME </VirtualHost>
    

    You have to use your IP address instead of YOUR_IP_ADDRESS, your domain name instead of YOUR_DOMAIN.com, your domain folder instead of DOMAIN_DIR and your username instead of USERNAME.
    3. after that restart your httpd service.

    /etc/init.d/httpd restart
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have problem, when I want add Node to my GUI from other Thread.
I have numbers in javascript from 01(int) to 09(int) and I want add 1(int)
I have a website built with ASP.NET (3.5) and want add some level of
I have a list of string values that I want add to a hashtable
I want add new user from another script and I need create password for
I have an unsecured domain and want to create a secured sub-domain. On the
I want add every row data from csv into Dictionary in c# csv is
I want add my control code before rendering template. Example: Have templates: user.html.twig Controller:
I have a wildcard subdomain setup using CPanel, and I'd like to be able
I want add text of div to #inputString value ( value=text ). From ->

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.