Apache server displays ascii like headers until you refresh.
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Apache server displays ascii like headers until you refresh.
I have a webserver that when you first load the page in any brower you get an ascii like characters. Once you reload it is fine unless you open it in a new tab. This happens on all browsers.
When you look at the code it is replacing this section:
Is the indicated code at the beginning of the page? Perhaps post the first 10 lines or so of the document?
It is static header file on a dynamic page. It is the entirety of an included header, from start to finish. The header is being pulled from a drupal themes folder, but the location itself is not in drupal.
It is static header file on a dynamic page. It is the entirety of an included header, from start to finish. The header is being pulled from a drupal themes folder, but the location itself is not in drupal.
Then my guess is that whatever is sending the page is not sending the requisite header...
Code:
Content-type: text/html
<html>
<head>
...etc.
...or since it works sometimes, not sending it consistently.
Note that the blank line following the Content-type is also required. That line is often coded in a cgi script as
Thank you for the reply. It is only an issue on the first load of the page, and always an issue on the first load of the page, once the browser has a cache it works fine.
Thank you for the reply. It is only an issue on the first load of the page, and always an issue on the first load of the page, once the browser has a cache it works fine.
You may try the mod_proxy_html and see if it helps in your case.
You may try the mod_proxy_html and see if it helps in your case.
I am sorry but I miss your meaning. Haproxy does the proxying for the server, the header is accessible via the web through haproxy and on the back end to the server. Here is the interesting bit though, if you call the header file directly, outside of the<!--#include virtual=> tags it loads fine through the proxy server or locally every time, but once you add it to a php file, any php file (and only php files) it then decides to throw out all the special characters.
I was able to fix it, at least temporarily by deleting the httpd cache on the server. I am still not sure why I only saw the issue through haproxy but it is cleared for now. Time to just dig into the root cause.
I am sorry but I miss your meaning. Haproxy does the proxying for the server, the header is accessible via the web through haproxy and on the back end to the server. Here is the interesting bit though, if you call the header file directly, outside of the<!--#include virtual=> tags it loads fine through the proxy server or locally every time, but once you add it to a php file, any php file (and only php files) it then decides to throw out all the special characters.
I missed the haproxy stuff, sorry.
IIRC you should use the following syntax if you want to include a html file inside a php file:
I was able to fix it, at least temporarily by deleting the httpd cache on the server. I am still not sure why I only saw the issue through haproxy but it is cleared for now. Time to just dig into the root cause.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.