Hola António and everybody,<br><br>Thanks for the help, I really apreciate it!<br><br>The VirtualHosts configuration file is located in: /etc/nginx/conf.d/virtual.conf<br><br>example:<br><br>http {<br> ### vhost1 - <a href="http://www.prueba.com">www.prueba.com</a> ###<br>
 server {<br>   listen          80;<br>   server_name     <a href="http://www.prueba.com">www.prueba.com</a>;<br>   access_log       logs/prueba.access.log main;<br><br>   index index.html;<br>   root  /var/www/virtuales/<a href="http://prueba.com/htdocs">prueba.com/htdocs</a>;<br>
 }<br><br><br><br>2010/09/22 13:21:22 [info] 24429#0: the configuration file /etc/nginx/nginx.conf syntax is ok<br>2010/09/22 13:21:22 [emerg] 24429#0: open() &quot;/usr/share/nginx/logs/prueba.access.log&quot; failed (2: No such file or directory)<br>
2010/09/22 13:21:22 [emerg] 24429#0: the configuration file /etc/nginx/nginx.conf test failed<br><br>¿the logs file must be created maually everytime I create a domain?<br><br>I remove the &quot;access_log       logs/prueba.access.log main;&quot; line and works, but when I browse &quot;<a href="http://www.prueba.com">www.prueba.com</a>&quot; I get nginx default html page, and when I browse &quot;<a href="http://www.prueba.com/index.html">www.prueba.com/index.html</a>&quot; the index.html placed in /var/www/virtuales/<a href="http://prueba.com/html">prueba.com/html</a> is showed.<br>
<br>is possible show index.html directly when &quot;<a href="http://prueba.com">prueba.com</a>&quot; or &quot;<a href="http://www.prueba.com">www.prueba.com</a>&quot; is entered in the browser?<br><br>Maybe some redirection in the VirtualHost configuration file<br>
<br>what about the error logs files?<br><br>Thank you very much!<br><br><div class="gmail_quote">2010/9/22 António P. P. Almeida <span dir="ltr">&lt;<a href="mailto:appa@perusio.net">appa@perusio.net</a>&gt;</span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im">On 22 Set 2010 07h21 WEST, <a href="mailto:marceloramone@gmail.com">marceloramone@gmail.com</a> wrote:<br>
<br>
&gt; Thank you António,<br>
&gt;<br>
&gt; I saw this example before.<br>
&gt;<br>
&gt; I saw many examples, but does not work.<br>
&gt;<br>
&gt; I get always nginx default html page or 404...<br>
<br>
</div>Then there&#39;s something wrong with your configuration. Perhaps the root<br>
directive or a/the location block. This is guessing. It&#39;s much better<br>
if you place the config here, so that we can help you debug it.<br>
<div><div></div><div class="h5"><br>
--- appa<br>
<br>
<br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://nginx.org/mailman/listinfo/nginx" target="_blank">http://nginx.org/mailman/listinfo/nginx</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>¿Por qué sufrimos? <a href="http://www.youtube.comwatch?v=FK53c2jW2VU">http://www.youtube.comwatch?v=FK53c2jW2VU</a><br>