Author Topic: Wildcard and automatic subdomains  (Read 2911 times)

0 Members and 1 Guest are viewing this topic.

Wildcard and automatic subdomains
« on: May 21, 2018, 04:19:39 PM »
I was browsing the internet and I do not know what's going on anymore.

I have a vps with Centos webpanel, on vps is a script that is supposed to automatically create subdomains for users who want to add their business card.

Domain in OVH, I added in the dns zone entry: * A IP vps.

File /usr/local/apache/conf.d/vhosts.conf

<VirtualHost My IP:80>
ServerName myserver
ServerAlias *
DocumentRoot /home/lupus/public_html
UseCanonicalName Off
ScriptAlias /cgi-bin/ /home/lupus/public_html/cgi-bin/

# Custom settings are loaded below this line (if any exist)
# Include "/usr/local/apache/conf/userdata/lupus/*.conf

<IfModule mod_userdir.c>
    UserDir disabled
    UserDir enabled lupus

<IfModule mod_suexec.c>
    SuexecUserGroup lupus lupus

<IfModule mod_suphp.c>
    suPHP_UserGroup lupus lupus
    suPHP_ConfigPath /home/lupus

<Directory "/home/lupus/public_html">
    AllowOverride All

When trying to create a business card, the address is: https: // (after these strange characters, I can enter the name of the company)

And it should be: https: //company/

What is wrong?