Eu criei um subdomínio no Ubuntu Server que está no Azure Cloud, mas ele sempre redirecionará para o domínio principal
Aqui está o meu arquivo apache.conf
<VirtualHost xx.xx.xx.xxx:80>
ServerName admin.example.com
DocumentRoot /var/www/admin.example.com
</VirtualHost>
Também adicionei o IP do servidor em /etc/hosts
file
xx.xx.xx.xxx admin.example.com
Qual é o problema?
Observação: criou um registro de A host
nas configurações do domínio.
Atualizar
Aqui está a saída de curl -v admin.example.com
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html>
<head>
<title>Index of /</title>
</head>
<body>
<h1>Index of /</h1>
<table>
<tr><th valign="top"><img src="/icons/blank.gif" alt="[ICO]"></th><th><a href ="?C=N;O=D">Name</a></th><th><a href="?C=M;O=A">Last modified</a></th><th><a hre f="?C=S;O=A">Size</a></th><th><a href="?C=D;O=A">Description</a></th></tr>
<tr><th colspan="5"><hr></th></tr>
<tr><td valign="top"><img src="/icons/folder.gif" alt="[DIR]"></td><td><a href=" findetrip/">findetrip/</a></td><td align="right">2016-06-16 04:52 </td><td alig n="right"> - </td><td> </td></tr>
<tr><td valign="top"><img src="/icons/folder.gif" alt="[DIR]"></td><td><a href=" test/">test/</a></td><td align="right">2016-06-16 05:40 </td><td align="right"> - </td><td> </td></tr>
<tr><th colspan="5"><hr></th></tr>
</table>
<address>Apache/2.4.7 (Ubuntu) Server at admin.example.com Port 80</address>
</body></html>
* Connection #0 to host admin.example.com left intact