Score:0

Ubuntu apache2 windows10 I want adress server/adress

us flag

I want some litlle help thanks. I have instaled virtualbox on machine. Setup Apache2 and make some test adress. I want in windows set adress like 192.168.56.212/test.com and want in windows next adress like 192.168.56.212/nextadress.com

I have now in test.com.conf

<VirtualHost *:80>
    ServerAdmin [email protected]
    ServerName 192.168.56.212/test.com
    ServerAlias 192.168.56.212/www.test.com
    DocumentRoot /var/www/projects/test.com/public_html
    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

but 192.168.56.212/test.com not function. I setup Nat and so on is correct becouse when I set 192.168.56.212 without /test.com send me apache2 default page Thanks for help

Nate T avatar
it flag
Try [this](https://ubuntu.com/tutorials/install-and-configure-apache#1-overview). It is a walkthrough on setting up virtual hosts on Ubuntu.
Score:1
om flag

A virtualhost of 192.168.56.212/test.com is not valid. Vhosts should be a FQDN, e.g. example.org.

To configure multiple names, you would somehow have to configure a working name resolution scheme.

Alternatively you can configure IP based hosting, where Apache listens to multiple IP's and decides what content to serve based on IP. In that case the ServerName doesn't affect content.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.