J.P
2011-12-13 09:25:37 UTC
This is the contents of my virtual host
When i use the following :
<Directory “/var/www/capi_app/current/public”>
Allow from all
Order allow,deny
Options FollowSymlinks MultiViews
</Directory>
NameVirtualHost *:80
NameVirtualHost *:443
<VirtualHost *:80>
ServerName www.passionate4.net
DocumentRoot /var/www/capi_app/current/public
</VirtualHost>
<VirtualHost *:443>
ServerName www.passionate4.net
DocumentRoot /var/www/capi_app/current/public
</VirtualHost>
but getting error, with this line NameVirtualHost *:80 It says
some name misspelled or something
Then i changed it to following :
<VirtualHost *:80>
ServerName www.passionate4.net
DocumentRoot /var/www/capi_app/current/public
RequestHeader set X_FORWARDED_PROTO 'https'
<Directory “/var/www/capi_app/current/public”>
Allow from all
Options FollowSymlinks MultiViews
</Directory>
</VirtualHost>
Error message ;:
Syntax error on line 2 of /etc/apache2/sites-enabled/capi_app:
Invalid command 'ServerName\xc2\xa0www.passionate4.net', perhaps
misspelled or defined by a module not included in the server
configuration
httpd not running, trying to start
Action '-k restart' failed.
The Apache error log may have more information.
How should I change this settings so that my ubuntu server on ec2 can
accept http as well as https requests?
Please help!!!!
When i use the following :
<Directory “/var/www/capi_app/current/public”>
Allow from all
Order allow,deny
Options FollowSymlinks MultiViews
</Directory>
NameVirtualHost *:80
NameVirtualHost *:443
<VirtualHost *:80>
ServerName www.passionate4.net
DocumentRoot /var/www/capi_app/current/public
</VirtualHost>
<VirtualHost *:443>
ServerName www.passionate4.net
DocumentRoot /var/www/capi_app/current/public
</VirtualHost>
but getting error, with this line NameVirtualHost *:80 It says
some name misspelled or something
Then i changed it to following :
<VirtualHost *:80>
ServerName www.passionate4.net
DocumentRoot /var/www/capi_app/current/public
RequestHeader set X_FORWARDED_PROTO 'https'
<Directory “/var/www/capi_app/current/public”>
Allow from all
Options FollowSymlinks MultiViews
</Directory>
</VirtualHost>
Error message ;:
Syntax error on line 2 of /etc/apache2/sites-enabled/capi_app:
Invalid command 'ServerName\xc2\xa0www.passionate4.net', perhaps
misspelled or defined by a module not included in the server
configuration
httpd not running, trying to start
Action '-k restart' failed.
The Apache error log may have more information.
How should I change this settings so that my ubuntu server on ec2 can
accept http as well as https requests?
Please help!!!!