This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Custom Vhost entries problem - Not working
#1
[Not Solved] Custom Vhost entries problem - Not working
Hi! I followed this guide: (to create a vhost entry: webmail)
http://forums.sentora.org/showthread.php?tid=495
and apache says:
Code:
AH00526: Syntax error on line 384 of /etc/sentora/configs/apache/httpd-vhosts.conf:
<VirtualHost> cannot occur within <VirtualHost> section

And it is true. When searching for that line i found:

# DOMAIN: domain.es
<virtualhost *:80>
ServerName domain.es
ServerAlias  http://www.domain.es
ServerAdmin aaba@aaasasaa.com
DocumentRoot "/var/sentora/hostdata/domain/public_html/domain_es"
php_admin_value suhosin.executor.func.blacklist "passthru, show_source, shell_exec, system, pcntl_exec, popen, pclose, proc_open, proc_nice, proc_terminate, proc$
ErrorLog "/var/sentora/logs/domains/angelsanchez/domain.es-error.log"
CustomLog "/var/sentora/logs/domains/angelsanchez/domain.es-access.log" combined
CustomLog "/var/sentora/logs/domains/angelsanchez/domain.es-bandwidth.log" common
<Directory "/var/sentora/hostdata/angelsanchez/public_html/domain_es">
 Options +FollowSymLinks -Indexes
 AllowOverride All
 Require all granted
</Directory>
AddType application/x-httpd-php .php3 .php
ErrorDocument 404 /_errorpages/404.html
ErrorDocument 500 /_errorpages/500.html
ErrorDocument 403 /_errorpages/403.html
ErrorDocument 510 /_errorpages/510.html
DirectoryIndex index.html index.htm index.php index.asp index.aspx index.jsp index.jspa index.shtml index.shtm
# Custom Global Settings (if any exist)


# Custom VH settings (if any exist)
   # Configuration for WebMail - webmail.yoursite.tld
   <VirtualHost *:80>
   ServerAdmin info@domain.es
       DocumentRoot "/var/zpanel/panel/etc/apps/webmail/"
       ServerName webmail.domain.es
   AddType application/x-httpd-php .php3 .php
       <Directory />
       Options FollowSymLinks Indexes
       AllowOverride All
       Order Allow,Deny
       Allow from all
       </Directory>
   </VirtualHost>
</virtualhost>

# END DOMAIN: domain.es
################################################################

So, there is a virtual host inside an other one.

I think that if I delete the <VirtualHost *:80> and the </VirtualHost> in the custom setting it will work, ¿right?
Thanks given by:


Messages In This Thread
Custom Vhost entries problem - Not working - by Tango - 11-24-2014, 09:43 PM

Possibly Related Threads...
Thread Author Replies Views Last Post
Make a change in httpd-vhost.conf whitewolf101 2 104 11-20-2017, 07:28 PM
Last Post: Me.B
httpd will not start after adding custom cammand in admin showery 4 185 11-20-2017, 07:26 PM
Last Post: Me.B
Sentora Admin login not working after Enabling FREE SSL nscloud 7 142 11-17-2017, 03:31 AM
Last Post: TGates

Forum Jump:


Users browsing this thread: 1 Guest(s)