Expires Headers Filename Vs CGI Params.
Jul 27, 2007
I am setting up Expires headers for my site. The site allows users to upload photos of themselves. The photos are stored as <user id number>.jpeg. I want these to be cached, but updated when the user uploads a new photo. From what I understand, new browsers use ETags to make sure this happens (since if they upload a new file, the inode and/or mtime will change). However for older browsers, I plan to add ?file-mtime to the end of the file name. This should allow caching but it will change when the user uploads a new image. Will the cause any technical problems with caches that would not be a problem if I changed the filename to be user_id.mtime.jpeg when the user uploads the file? The trade-off is that if I just append ?file-mtime to the end of the filename, I don't have to track these images in a database or use file globs (cpu-expensive for large directories) to find the filename to output.
View 3 Replies
ADVERTISEMENT
Nov 2, 2007
For those of you who have installed and are using Lighttpd, I have a question about if my content is being properly cached.
I am completely new to Lightthpd. I setup my server to have all the
static content (CSS, images, JS and HTML) to be apart of a static-only
subdomain and I have noticed that ALL of my static content gets
downloaded each time. My Lighttpd build does have the mod_expires
module.
Therefore, there is no "browser cache" going on with the static content.
Before, when I was using apache for everything, all of my content (html,
css, etc...) was given an expires header and, therefore, the enduser's
browser cached them.
What do I need to do to make the content cached?
View 1 Replies
View Related
Nov 20, 2008
I pasted the contents of a javascript page into a filename on my server.
Now I cant rename, download or delete the file,
View 4 Replies
View Related
Aug 4, 2008
how to rename access logs according to Week Number?
I notice that 1&1 do this, producing a file like "access.log.31.gz".
I'd like the access log to be in this format: access_log_[domain-name]_[Week-Number].gz, or if domain-name is not possible: access_log_[Week-Number].gz
Here's my current logrotate script for access_log:
Code:
/home/default/muro.co.uk/user/logfiles/access_log {
missingok
rotate 8
weekly
postrotate
/bin/kill -USR1 `cat /var/run/httpd.pid`
endscript
}
View 4 Replies
View Related
Aug 17, 2014
I'm using Parallels Plesk 12.0 and a mysql-Server.
I'm logged in with a customer's account into his phpmyadmin. Whenever a client connects to his website (which uses the database of his account) I get logged out and receive a "session expired" error. When I log in again I get "there's already a user with your username logged in".
View 4 Replies
View Related
Apr 8, 2008
how to copy all filename with the word 'index' from src to dest?
This include index file within directories as well..
this doesn't seem to work. It only copy index.html in public_html .. and stop there..
Quote:
cp -Rf /backup/userA/public_html/*index* /home/userA/public_html/
View 8 Replies
View Related
May 1, 2007
some clarification on the following page headers?
I always presumed the Expires: date is part of the page cache instructions, however I was told its to do with the cookie. I thought the cookie expire was set as expires=date in the set cookie line and not on a new line with the :
HTTP/1.1 302 Found
Date: Sat, 21 Apr 2007 20:12:46 GMT
Server: Apache
X-Powered-By: PHP/4.4.2
Set-Cookie: oscsid=4d9ad82; path=/; domain=www.******.co.uk
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Location: http://www.******.co.uk/
Connection: close
Content-Type: text/html
The domain has been blanked out coz im paranoid about bots Yes its an Oscommerce store and all of them set this expires header to the same date!
View 2 Replies
View Related
Jun 13, 2007
I have a dedicated server and I am using the SMTP of one of my domain names to send mail. The IP of this domain name ends in .25 and the server hostname IP ends in .24.
The emails that are received list the server hostname and IP in the message headers instead of the IP of the domain name that is sending the email. Is there something that can be done about this? I read that a message could be mistaken as spam if it doesn't originate from the exact IP of the domain in the 'from' field.
View 4 Replies
View Related
Apr 6, 2008
Need to trace this abuse complaint from AOL. They provided the server IP and spam email body, but no headers.
How can I go about tracing this on a cpanel box?
View 12 Replies
View Related
Nov 13, 2007
I am installing rtg, but it returned error
configure: error: Cannot find SNMP headers. Use --with-snmp= to specify non-default path.
I have installed net-snmp by command
yum install net-snmp net-snmp-utils
and thought snmp installed to /usr/share/snmp. However, when using configure --with-snmp=/usr/share/snmp, still the same error.
View 6 Replies
View Related
Jul 8, 2007
I'd love to contact the domain registrars of the recipient spammers who are barraging me with the latest "google riches", or "ebay success" sales pitch emails, but I lack the knowledge of how to reveal the email headers and interpret them.
Is there a particular email client program that would allow me to view all parts of the email ? Maybe I'm using the wrong client (outlook), that would not allow me to view the more technical parts of the email, but but I don't know.
If I go ahead and click on their "unsub me" links at their bottom, that's their tricky way of finding out what emails are active and possibly make it worse for me. I know that it's illegal to send me email that I didn't opt into, in the first place, even if they do provide the unsubscribe link at the bottom, with the usual "Icann" spam disclaimer that they include.
View 2 Replies
View Related
Dec 1, 2008
qMail inconsistent headers on Plesk
We are facing this problem on a Plesk (serverpsa v8.6.0_build86080910.19 os_CentOS 5)
The scenario is that on this server we have around 5 domains, one of them is the main domain that is also in the hostname.
On the main domain some custom social networking PHP script is running that sends out mails using SMTP authentication, now when welcome mail or invites or notification mails or any such mail are sent through the script, it includes other domains in the headers randomly:
Received: (qmail 15896 invoked from network); 24 Nov 2008 18:45:05 -0500
Received: from somedomain.com (HELO server.maindomain.com) (xyz.xyz.xyz.xyz).....
View 0 Replies
View Related
May 20, 2009
How can I force sendmail to ignore it when a user sets the From: and Reply-to: headers for an email, such as a PHP script? I would like to force it so it always uses whatever email I set.
I cannot seem to find how to do this... sendmail config is quite difficult.
View 0 Replies
View Related
Jan 22, 2008
A few customers have noticed random domain names inside their email headers and I can't figure out why.
Here's a copy of an email header to show you where the domain is being shown..
Code:
Received: from 87******.no-dns-yet.**** (HELO Computer4) (87.127.166.191)
by randomdomain.co.uk with SMTP
The domains that it is using are hosted on the same server as the client, but do not belong to this client.
View 1 Replies
View Related
Jan 22, 2008
I am attempting to change the host headers on my site that take my domains and forward them out to another domain.
My problem is that if a person type in [url], it brings them to my site and every link of the site is then [url]instead of redirecting it to my intended [url]
View 0 Replies
View Related
Jun 20, 2008
I have a problem with my site where users log in (vbulletin) and yet the script doesn't log them in. After some research i found out this happens due to http headers.
I own a dedicated server which has plesk as the control panel, i do not know where to go and find the option to enable Http Headers.
View 8 Replies
View Related
Aug 30, 2007
i have cpanel 11 with exim 4.6
i would like to be able to remove certain headers with the exim filter.
View 2 Replies
View Related
Aug 14, 2007
I was running into a problem where PHP was automatically sending the following HTTP headers:
Code:
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
This caused a problem in that my browser (Camino) would not let me view source without reloading the page. For state-based pages, that was a nightmare and meant I couldn't use my main browser for development!
Now that I have identified the problem, I am wondering what the point of those headers are, and whether I need them. I can definitely overwrite them but am not sure if I should.
My web app does set cookies (uses PHP sessions). I believe that it is the setting of the cookie that triggers PHP to send those headers. If I don't set a cookie on a PHP script, those headers are not sent.
how I can manage cache-control properly so that I can view source in Camino? Is no-cache etc. really important if you're setting cookies?
View 0 Replies
View Related
Dec 15, 2014
I maintain a server with a few domains. The server runs Plesk and Mailman. There are about 50 mailing lists with number of subscribers ranging from a couple people to a few hundred people. All work fine.
There is an additional list with around 2500 subscribers. Messages sent to this list are being received with nearly 500 identical "Received-SPF: pass" lines. Besides seeming odd, it's particularly problematic as some domains are bouncing the emails because the header is too large.
This behavior started after I upgraded from Plesk 11.x to 12.x.
The SPF lines look like this:
Received-SPF: pass (SERVER-HOSTNAME-HERE: localhost is always allowed.) client-ip=127.0.0.1; envelope-from=BOUNCE-LIST-ADDRESS-HERE; helo=SERVER-HOSTNAME-HERE;
Where SERVER-HOSTNAME-HERE is our hostname and BOUNCE-LIST-ADDRESS-HERE is the list's bounce address.
For what it's worth the server hostname and the domain of the list do not match.
This issue seems to be tied to the number of subscribers. We made a new list with a few subscribers and messages looked fine. We added the 2500 subscribers to the new list and then we saw the plentiful Received-SPF: pass entries.
View 5 Replies
View Related
Sep 14, 2008
i installed the latest version of the mail scanner on my linux server. It has been tested to be scanning and running properly. But one thing that is unusual is that the emails that is being processed by the mailscanner does not get tagged as its being processed by it. Hence i do not really know whether it has been processed.
When i check the email full headers, i am missing information like spam score, spam information and spam status. I did a check in the mailscanner.conf and the configuration was done correctly.
how can we set these information to show on the email header that it has been processed.
View 2 Replies
View Related
Jun 13, 2013
I get this error sometimes in the apache log for my site (and then my server gets slower and slower until it goes offline):
Code:
[Thu Jun 13 11:58:48.675867 2013] [core:error] [pid 1368:tid 2344] [client 111.222.333.444:38360] End of script output before headers: index.php
I am using a Windows Server 2012 64 bit server, but I had the error on a Windows Server 2008 64 bit server too.
The new server only has 1 site on it - and it is a Joomla 2.5 site. The server is dedicated and has 8 CPU cores and 24 GB ram and so on.
I have googled the error enough to understand that my Apache server (downloaded from this site) is misconfigured somewhere.
View 2 Replies
View Related
Aug 17, 2012
How can i remove "Connection and keep-alive" from response headers ? I am using Apache http server to load balance two tomcat nodes
Apache Server- Apache/2.4.2
mod_jk - 1.2.27
Apache tomcat - Apache Tomcat/7.0.23
JDK - 1.6
I have also enabled SSL in the apache http server using mod_ssl. The load balancing works fine, but in all the response headers these connection attributes are added "Connection: keep-alive keep-alive: timeout=5"
Is there a way to remove these headers? I do not want these headers to be added in the response. I have also tried mod_header to unset these headers, but no use. HTTP/1.1 protocol is being used, so eventhough the connection is not present in the header, the connection would should be considered as persistent. Why is apache sending these attributes explicitly in each response. I just want to get rid of these attribute...
View 7 Replies
View Related
Jul 23, 2014
I want to pass the X-SENDFILE header to apache through nginx.
Is this possible or do i have to disable the reverse proxy?
View 1 Replies
View Related
Dec 18, 2014
I have compiled apache with below configuration
./configure --prefix=/app/apache2_4 --with-apr=/app/apache2_4/apr --with-apr-util=/app/apache2_4/apr-util --with-pcre=/app/apache2_4/pcre/ --enable-ssl --with-ssl=/usr/bin/openssl --enable-modules=all --enable-mods-shared=all --enable-proxy --enable-mime-magic --enable-rewrite --enable-speling--enable-mpms-shared
But after compilation I have added expiry,deflate headers but I am not able to see either ETAG and LAst-modified header...
View 1 Replies
View Related
Aug 28, 2014
I am trying to setup dynamic content configuration in apache 2.2 httpd conf. Here is the configuration and couple test cases:
CONF:
<FilesMatch ".(js|css|gif|jpg|jpeg|png)$">
Header set Cache-Control "no-cache, no-store, max-age=0, must-revalidate"
</FilesMatch>
TEST 1:
Without <FilesMatch> directive, the headers are set to all requested content as it should. This includes content served from apache server and content from a separate application server.
TEST 2:
If I use the above configuration example, I can see that static content comes with correct headers only
View 1 Replies
View Related