Answer the question
In order to leave comments, you need to log in
Why can't apache see the virtual host?
fedora 23/apache 2.4.18
What I did: I
created a config file example.conf with the following content:
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot "/var/www/exampleSite"
ServerName example.com
ServerAlias example.com
DirectoryIndex web/index.php
ErrorLog "/var/log/httpd/example-error_log"
CustomLog "/var/log/httpd/example-access_log"
</VirtualHost>
Answer the question
In order to leave comments, you need to log in
The index.php file must be in document_root. This is the entry point to the application. In the same folder are pictures and other statics.
So it's more correct to define web as document_root.
The second option is to use a symbolic link.
Set document_root to some public_html folder and point to a symbolic link to web.
But if you have access to the server configs, then the second option looks a little strange.
And so?
var currStamp = new Date().getTime();
var from1970 = (currStamp / (1000 * 60 * 60));
document.write(Math.round(from1970));
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question