currently planing the creation of a subomain on apache


Recommended Posts

hi there - good day

 

 

currently planing the creation of a subomain on apache

 

well i work with webmin on a root-server that is administered by a friend of mine.

The question is: i want to create a subodmain.

 

can i do the following in a internal net  vHosts with vhost with the apache module  "mod_proxy"
 

 

NameVirtualHost *:80

<VirtualHost *:80>
ServerName server01.network
DocumentRoot /home/webmaster/htdocs
</VirtualHost>

<VirtualHost *:80>
ServerName subdom.server01.network
ProxyPass / http://127.0.0.1:10000/
ProxyPassReverse / http://127.0.0.1:10000/
</VirtualHost>

LoadModule proxy_module                  /usr/lib/apache2-prefork/mod_proxy.so
LoadModule proxy_http_module             /usr/lib/apache2-prefork/mod_proxy_http.so

 

whilst sudbomain is running on  Port 10000 ,,,,

any ideas  !?

 

note: i think this is worth reading since i use webmin for the creation-process:

Steps To Create Sub Domain in Webmin

cf  https://bobcares.com/blog/webmin-subdomain/
 

Quote


1. Firstly, we log into Webmin control panel.

2. Then go to Servers > Apache Webserver.

3. From that page, we select “create new virtual host”.

Also, we fill the following field too.

Handle connections to address: We select the specific address and IP address of the subdomain in the text field.

Document Root: We enter the path of sub-domain,

4. At last, we click on the “Create Now” button.

Now, the subdomain successfully created in Webmin.

Note: once we have created the Webmin subdomain, a proper DNS record must be added to the corresponding subdomain. Otherwise, errors will appear on the website.

However, you may get errors like “Unable to determine IP address from host name xxxx.domain.com” after creating subdomain due to improper settings in the configuration file.

 

what do you say?

Edited by tarifa
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.