Today I got a website from the UI developer. I changed the * .php * .html code to * .php It runs well on the local server after posting it to the online server, I failed to load
resources: the server responded with the status of 500 (internal server error)
After this googling, I have learned that I need to change the .htaccess file.
But I had created my virtual host a few days ago. Instead, I found three files in / etc / apache2 / sites-available / I / O
/ etc / apache2 / sites-available / default
.
000-default.conf default -ssl.conf tangelotown.org.conf
The contents of tangelotown.org.conf
& lt; VirtualHost *: 80 & gt; # Server uses name instructions, request scheme, hostname and port that the # server uses to identify itself, it is used during the # redirection url formation. In the context of the virtual host, the server name # specifies what host host hosted in the hostname: Header # matches this virtual host This default value for the default virtual host (this file) is not valid because its use Used as a last resort host. # However, you have to set it explicitly for any further virtual host. ServerName tangelotown.org Server Alliance www.tangelotown.org Server Admin President @ tangelotown.org DocumentRoot /var/www/tangelotown.org/public_html # Available loglevels: trace8, ..., trace1, debug, notice, notice, warning, #default It is also possible to configure loglevel for the special module, for example, criticism, alert, rise. #LogLevel info ssl: warning errorLog $ {APACHE_LOG_DIR} /error.log Custom Log $ {APACHE_LOG_DIR} /access.log for Combined # config / available for more configuration files, which are enabled or disabled at the # global level, it is possible # Includes a line for only one special virtual host, for example # the following line enables the CGI configuration for this host # Then there is a worldwide disable with "a2disconf". #include conf-available / service-cgi-bin.conf & lt; / VirtualHost & gt; # Vim: syntax = Apache ts = 4 sw = 4 sts = 4 sr noet
In this file
& lt; The directory / var / www does not include / & gt; Follow Option Index Simlinks Allow Multiviz; Allow Override All Orders, Allow All & lt; / Directory & gt; As explained on the site
Please help me solve this problem. My site is
Try adding the directory stenza before the virtualhost stenza, but you probably want to change it The directory is
& lt; Directory /var/www/tangelotown.org/> Follow Option Index Simlinks Allow Multiviz; Allow Override All Orders, Allow All & lt; / Directory & gt;
No comments:
Post a Comment