Apache2 trying connecting with ssl, cannot reliably determin the server's fully qualif?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
0
down vote

favorite












Hay guys, I'm starting using apache 2 and I would like to connect with an ssl protocol.



I have activated the SSL module with sudo a2mod ssl, and created a directory for the certs with sudo mkdir /etc/apache2/certificatiSSL.



Then I created the private key and certificate with sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/apache2/certificatiSSL/apache.key -out /etc/apache2/certificatiSSL/apache.crt, and filled in the information as requested.



I configured Apache for my virtual host, and I created a new ssl.conf file sudo nano /etc/apache2/sites-available/miosito-ssl.conf



<IfModule mod_ssl.c>
<VirtualHost _default_:443>
ServerAdmin webmaster@miosito.com
ServerName www.miosito.com
ServerAlias miosito.com
DocumentRoot /var/www/miosito.com
ErrorLog $APACHE_LOG_DIR/error.log
CustomLog $APACHE_LOG_DIR/access.log combined
SSLEngine on
SSLCertificateFile /etc/apache2/certificatiSSL/apache.crt
SSLCertificateKeyFile /etc/apache2/certificatiSSL/apache.key
<FilesMatch ".(cgi|shtml|phtml|php)$">
SSLOptions +StdEnvVars
</FilesMatch>
<Directory /usr/lib/cgi-bin>
SSLOptions +StdEnvVars
</Directory>
BrowserMatch "MSIE [2-6]"
nokeepalive ssl-unclean-shutdown
downgrade-1.0 force-response-1.0
BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown
</VirtualHost>
</IfModule>


Then I enable the site with sudo a2ensite miosito.com, then restarted apache with sudo /etc/init.d/apache2 restart.



Once I try to open the site (https://www.miosito.com), with Firefox, I get the message that I cannot connect to the server at www.miosito.com. The firewall of course allows access to the web.



Checking journalctl -xe I find



AH00558: apache2: Could not reliably determine the server's fully qualify.


I cannot understand what is going wrong, it seems everything ok, except for the fact that I cannot find my page online.







share|improve this question






















  • Is www.miosito.com the real name? If so your problem is probably that this does not have a valid DNS record.
    – vidarlo
    May 9 at 14:41










  • hay vidarlo, thanks for the correction :), yes the name is miosito.com, a random name to see how things work. Should i give a more unique name?
    – Francesco
    May 9 at 18:47










  • No, but the domain has to be registered and resolve to the correct IP for your browser to be able to find it. Or you can add the line 127.0.0.1 www.miosita.com to /etc/hosts. In that case it will only work on the machine running the webserver.
    – vidarlo
    May 9 at 18:52















up vote
0
down vote

favorite












Hay guys, I'm starting using apache 2 and I would like to connect with an ssl protocol.



I have activated the SSL module with sudo a2mod ssl, and created a directory for the certs with sudo mkdir /etc/apache2/certificatiSSL.



Then I created the private key and certificate with sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/apache2/certificatiSSL/apache.key -out /etc/apache2/certificatiSSL/apache.crt, and filled in the information as requested.



I configured Apache for my virtual host, and I created a new ssl.conf file sudo nano /etc/apache2/sites-available/miosito-ssl.conf



<IfModule mod_ssl.c>
<VirtualHost _default_:443>
ServerAdmin webmaster@miosito.com
ServerName www.miosito.com
ServerAlias miosito.com
DocumentRoot /var/www/miosito.com
ErrorLog $APACHE_LOG_DIR/error.log
CustomLog $APACHE_LOG_DIR/access.log combined
SSLEngine on
SSLCertificateFile /etc/apache2/certificatiSSL/apache.crt
SSLCertificateKeyFile /etc/apache2/certificatiSSL/apache.key
<FilesMatch ".(cgi|shtml|phtml|php)$">
SSLOptions +StdEnvVars
</FilesMatch>
<Directory /usr/lib/cgi-bin>
SSLOptions +StdEnvVars
</Directory>
BrowserMatch "MSIE [2-6]"
nokeepalive ssl-unclean-shutdown
downgrade-1.0 force-response-1.0
BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown
</VirtualHost>
</IfModule>


Then I enable the site with sudo a2ensite miosito.com, then restarted apache with sudo /etc/init.d/apache2 restart.



Once I try to open the site (https://www.miosito.com), with Firefox, I get the message that I cannot connect to the server at www.miosito.com. The firewall of course allows access to the web.



Checking journalctl -xe I find



AH00558: apache2: Could not reliably determine the server's fully qualify.


I cannot understand what is going wrong, it seems everything ok, except for the fact that I cannot find my page online.







share|improve this question






















  • Is www.miosito.com the real name? If so your problem is probably that this does not have a valid DNS record.
    – vidarlo
    May 9 at 14:41










  • hay vidarlo, thanks for the correction :), yes the name is miosito.com, a random name to see how things work. Should i give a more unique name?
    – Francesco
    May 9 at 18:47










  • No, but the domain has to be registered and resolve to the correct IP for your browser to be able to find it. Or you can add the line 127.0.0.1 www.miosita.com to /etc/hosts. In that case it will only work on the machine running the webserver.
    – vidarlo
    May 9 at 18:52













up vote
0
down vote

favorite









up vote
0
down vote

favorite











Hay guys, I'm starting using apache 2 and I would like to connect with an ssl protocol.



I have activated the SSL module with sudo a2mod ssl, and created a directory for the certs with sudo mkdir /etc/apache2/certificatiSSL.



Then I created the private key and certificate with sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/apache2/certificatiSSL/apache.key -out /etc/apache2/certificatiSSL/apache.crt, and filled in the information as requested.



I configured Apache for my virtual host, and I created a new ssl.conf file sudo nano /etc/apache2/sites-available/miosito-ssl.conf



<IfModule mod_ssl.c>
<VirtualHost _default_:443>
ServerAdmin webmaster@miosito.com
ServerName www.miosito.com
ServerAlias miosito.com
DocumentRoot /var/www/miosito.com
ErrorLog $APACHE_LOG_DIR/error.log
CustomLog $APACHE_LOG_DIR/access.log combined
SSLEngine on
SSLCertificateFile /etc/apache2/certificatiSSL/apache.crt
SSLCertificateKeyFile /etc/apache2/certificatiSSL/apache.key
<FilesMatch ".(cgi|shtml|phtml|php)$">
SSLOptions +StdEnvVars
</FilesMatch>
<Directory /usr/lib/cgi-bin>
SSLOptions +StdEnvVars
</Directory>
BrowserMatch "MSIE [2-6]"
nokeepalive ssl-unclean-shutdown
downgrade-1.0 force-response-1.0
BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown
</VirtualHost>
</IfModule>


Then I enable the site with sudo a2ensite miosito.com, then restarted apache with sudo /etc/init.d/apache2 restart.



Once I try to open the site (https://www.miosito.com), with Firefox, I get the message that I cannot connect to the server at www.miosito.com. The firewall of course allows access to the web.



Checking journalctl -xe I find



AH00558: apache2: Could not reliably determine the server's fully qualify.


I cannot understand what is going wrong, it seems everything ok, except for the fact that I cannot find my page online.







share|improve this question














Hay guys, I'm starting using apache 2 and I would like to connect with an ssl protocol.



I have activated the SSL module with sudo a2mod ssl, and created a directory for the certs with sudo mkdir /etc/apache2/certificatiSSL.



Then I created the private key and certificate with sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/apache2/certificatiSSL/apache.key -out /etc/apache2/certificatiSSL/apache.crt, and filled in the information as requested.



I configured Apache for my virtual host, and I created a new ssl.conf file sudo nano /etc/apache2/sites-available/miosito-ssl.conf



<IfModule mod_ssl.c>
<VirtualHost _default_:443>
ServerAdmin webmaster@miosito.com
ServerName www.miosito.com
ServerAlias miosito.com
DocumentRoot /var/www/miosito.com
ErrorLog $APACHE_LOG_DIR/error.log
CustomLog $APACHE_LOG_DIR/access.log combined
SSLEngine on
SSLCertificateFile /etc/apache2/certificatiSSL/apache.crt
SSLCertificateKeyFile /etc/apache2/certificatiSSL/apache.key
<FilesMatch ".(cgi|shtml|phtml|php)$">
SSLOptions +StdEnvVars
</FilesMatch>
<Directory /usr/lib/cgi-bin>
SSLOptions +StdEnvVars
</Directory>
BrowserMatch "MSIE [2-6]"
nokeepalive ssl-unclean-shutdown
downgrade-1.0 force-response-1.0
BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown
</VirtualHost>
</IfModule>


Then I enable the site with sudo a2ensite miosito.com, then restarted apache with sudo /etc/init.d/apache2 restart.



Once I try to open the site (https://www.miosito.com), with Firefox, I get the message that I cannot connect to the server at www.miosito.com. The firewall of course allows access to the web.



Checking journalctl -xe I find



AH00558: apache2: Could not reliably determine the server's fully qualify.


I cannot understand what is going wrong, it seems everything ok, except for the fact that I cannot find my page online.









share|improve this question













share|improve this question




share|improve this question








edited May 9 at 11:53









vidarlo

7,11342140




7,11342140










asked May 9 at 11:34









Francesco

13




13











  • Is www.miosito.com the real name? If so your problem is probably that this does not have a valid DNS record.
    – vidarlo
    May 9 at 14:41










  • hay vidarlo, thanks for the correction :), yes the name is miosito.com, a random name to see how things work. Should i give a more unique name?
    – Francesco
    May 9 at 18:47










  • No, but the domain has to be registered and resolve to the correct IP for your browser to be able to find it. Or you can add the line 127.0.0.1 www.miosita.com to /etc/hosts. In that case it will only work on the machine running the webserver.
    – vidarlo
    May 9 at 18:52

















  • Is www.miosito.com the real name? If so your problem is probably that this does not have a valid DNS record.
    – vidarlo
    May 9 at 14:41










  • hay vidarlo, thanks for the correction :), yes the name is miosito.com, a random name to see how things work. Should i give a more unique name?
    – Francesco
    May 9 at 18:47










  • No, but the domain has to be registered and resolve to the correct IP for your browser to be able to find it. Or you can add the line 127.0.0.1 www.miosita.com to /etc/hosts. In that case it will only work on the machine running the webserver.
    – vidarlo
    May 9 at 18:52
















Is www.miosito.com the real name? If so your problem is probably that this does not have a valid DNS record.
– vidarlo
May 9 at 14:41




Is www.miosito.com the real name? If so your problem is probably that this does not have a valid DNS record.
– vidarlo
May 9 at 14:41












hay vidarlo, thanks for the correction :), yes the name is miosito.com, a random name to see how things work. Should i give a more unique name?
– Francesco
May 9 at 18:47




hay vidarlo, thanks for the correction :), yes the name is miosito.com, a random name to see how things work. Should i give a more unique name?
– Francesco
May 9 at 18:47












No, but the domain has to be registered and resolve to the correct IP for your browser to be able to find it. Or you can add the line 127.0.0.1 www.miosita.com to /etc/hosts. In that case it will only work on the machine running the webserver.
– vidarlo
May 9 at 18:52





No, but the domain has to be registered and resolve to the correct IP for your browser to be able to find it. Or you can add the line 127.0.0.1 www.miosita.com to /etc/hosts. In that case it will only work on the machine running the webserver.
– vidarlo
May 9 at 18:52
















active

oldest

votes











Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);








 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1034001%2fapache2-trying-connecting-with-ssl-cannot-reliably-determin-the-servers-fully%23new-answer', 'question_page');

);

Post as a guest



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes










 

draft saved


draft discarded


























 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1034001%2fapache2-trying-connecting-with-ssl-cannot-reliably-determin-the-servers-fully%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

How do so many people here on Academia.SE, and in general, afford lavish higher education programs?

Trouble downloading packages list due to a “Hash sum mismatch” error

How do I move numbers in filenames, in a batch renaming operation?