Control Web Panel

WebPanel => CentOS 7 Problems => Topic started by: lupus on May 21, 2018, 04:19:39 PM

Title: Wildcard and automatic subdomains
Post by: lupus 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: * .mysite.eu A IP vps.

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

<VirtualHost My IP:80>
ServerName myserver
ServerAlias *.mysite.eu
ServerAlias www.mysite.eu
ServerAdmin webmaster@mysite.eu
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/mysite.eu/*.conf

<IfModule mod_userdir.c>
    UserDir disabled
    UserDir enabled lupus
</IfModule>

<IfModule mod_suexec.c>
    SuexecUserGroup lupus lupus
</IfModule>

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

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


When trying to create a business card, the address is: https: //mysite.eu/company/%26nbsp%3B (after these strange characters, I can enter the name of the company)

And it should be: https: //company/mysite.eu

What is wrong?