I would appreciate a minute of someones time just to help me with a server issue.
I have a site that serves up .php pages, when I say served up there is a wordpress php inculde tag at the top of every page that includes the blog snippets.
These pages are served as .php and they render fine in the browser. However when you do a crawl test on them they show a 404?
I run an Apache server, which I hope I have set up properly.
Any ideas would be greatly appreciated.
Thank you for your time in advance.
Haydyn
How are you crawling the pages, please specify the commands.
If you are using wget, do a wget -S http://sitename, to get the server headers. It may help in debugging.
Do you have http_proxy environment variable setup ?
Related
I am putting varnish cache in front of a magento 2.2.6 site which use just http.
After I configure ports and put the generated varnish.vcl in the /etc/varnish folder, I can see the front page, however 2 css files went missing (404). What's even worse is I cannot access any link, like /admin /menu /contents
It seems like the url rewrite is not working any longer. any clue how to solve/debug this?
thanks!
!!!!update after quite some time!!!!!
I solved this issue long while ago and did not get a good time to write a step by step tutorial. Luckily somebody else did it. See the link below:
https://komelin.com/articles/https-varnish/
In short, setting a synth status when the ip is foreign, and requesting for port 80 will solve the loop issue. Varnish should redirect this request to 443 (nginx). After this point, the work flow is the same as the described in the article above. Hope this helps someone.
Hello everyone I just setup ssl support with certbot and everything went good but it won't load the page unless I enter the full url to the login.
I am running an apache server on linode. I think i have to set up a redirect but when I do the page won't load and says to many redirects.
I am not sure what information you would need to help me out but whatever it is just let me know. Thank's in advance.
-James
My question is, I am sure, relatively straightforward and there are several questions about this exact topic already on stackoverflow. I have tried all of the solutions currently posted and none of them seem to work, this could be due to changes in the apache server over time and now it handles parsing a .htaccess file or it could be a configuration setting that isn't mentioned in the posts. Whichever the case an updated answer would be extremely helpful.
There are 2 main goals I have
1) Configure my apache server such that a link to the page [www.example.com/about] makes the web server understand that the page [www.example.com/about.php] should be rendered and shown to the user.
2) Configure my apache server such that a link to the page [www.example.com/about.php] redirects VISIBLY to [www.example.com/about] so that the user does not see the .php extension at the end of the url.
I have read through the Apache HTTP Server Version 2.4 documentation regarding mod_rewrite trying to figure out how to make this happen and I have not yet had success. I've also read through all the current posts on this topic and tried the posted solutions without luck thus far.
Any and all help will be extremely appreciated.
Thank you for your time.
For 1,
Its better to put Alias to achieve. Enter the following line to the VirtualHost container in httpd.conf
Alias /about /about.php
Then restart the httpd
For 2,
Try editing the httpd.conf and php.ini. From httpd.conf edit the following lines
ServerTokens Prod
ServerSignature Off
From php.ini edit/add the line
expose_php = Off
Let us know if that helped you :)
I'm trying to find out how to edit my htaccess to push all requests for files in:
http://www.domain.com/images
to head off to:
http://cdn.domain.com/images
The reasoning being i'd like to parrelise http requests over a number of domains/subdomains to speed up page load. Is this possible through apache scripting, or will I have to go and edit all the links?
also... if there is a scripting solution, will it still give the end user the benefit of serving files from multiple domains?
Thanks,
Hugh
That would be more taxing than editing the links. The browser would have to make 2 HTTP requests for each image. Your main server would still have to serve the redirection. Then, the browser would make a second request to the actual image.
My judgment: edit your links.
Is there any reason you can't make cdn.domain.com be a cname for www.domain.com? If not, do this through bind, not apache.
On a Windows 2003 server running IIS 6.0 and FastCGI with an ExpressionEngine-powered website, I've encountered an issue where links containing index.php fail unless a question mark is added.
The basic issue is that if a link points to "index.php/archive/article", the page fails to load (see below) but it will work when "index.php?/archive/article" is used.
What happens when the "index.php" links fail is the URL will change in the browser address bar, but the main page content is still displayed. Append a question mark to "index.php" and the page loads properly.
The site was previously running with ISAPI as the Server API with no issues: the server saw "index.php" and "index.php?" as being synonymous and pages with "index.php" in the path would load as expected.
How would I configure setting somewhere which would tell FastCGI to treat "index.php" and "index.php?" the same way?
I am a bit green when it comes to Windows servers; my experience is mostly with Apache servers running on Unix boxes.
Any guidance or pointers would be most appreciated.
One option is that you could simply enable EE's force URL query string option.
But, if you don't like having the question mark in the URL, you can try this workaround.
I can't say that I know anything about Windows servers, but this has worked for me on Apache servers when running PHP as CGI. Best of luck!