Score:0

Centos 8 Invalid command '
jp flag

I am currently on a vps to which I have directed 9 domain name. in httpd.conf file I inserted this

       <VirtualHost*:80>
    DocumentRoot /var/www/non.com
    ServerName non.com
    ServerAlias www.non.com
    <Directory "/var/www/non.com">
      Options -Indexes +FollowSymLinks
        AllowOverride    </Directory>
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^/(.*) https://non.com:443/$1 [R,L]
</VirtualHost*:80>
<VirtualHost*:80>
    DocumentRoot /var/www/ne.com
    ServerName ne.com
    <Directory  "/var/www/ne.com">
         Options -Indexes +FollowSymLinks
        AllowOverride All
   </Directory>
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^/(.*) https://ne.com:443/$1 [R,L]
</VirtualHost*:80>`

i have allways the same probleme

AH00526: Syntax error on line 349 of /etc/httpd/conf/httpd.conf: Invalid command '<VirtualHost*:80', perhaps misspelled or defined by a module not included in the server configuration

thank you for help

Michael Hampton avatar
cz flag
Which one of those is line 349?
Score:0
ci flag

There is a space missing between the t and the * in the open tag and you close the tag without the host:port part.

<VirtualHost *:80>
  DocumentRoot /var/www/non.com
  ServerName non.com
  ServerAlias www.non.com
  <Directory "/var/www/non.com">
    Options -Indexes +FollowSymLinks
    AllowOverride    
  </Directory>
  RewriteEngine On
  RewriteCond %{HTTPS} !=on
  RewriteRule ^/(.*) https://non.com:443/$1 [R,L]
</VirtualHost>

<VirtualHost*:80>
  DocumentRoot /var/www/ne.com
  ServerName ne.com
  <Directory  "/var/www/ne.com">
    Options -Indexes +FollowSymLinks
    AllowOverride All
  </Directory>
  RewriteEngine On
  RewriteCond %{HTTPS} !=on
  RewriteRule ^/(.*) https://ne.com:443/$1 [R,L]
</VirtualHost>
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.