PHP Cannot Include File Only When Accessed With Https
Nov 25, 2007
My PHP script has an include statement. All works fine when I access the script using http. HOWEVER, when I access the exact same page using https, PHP complains that it fails to open the include file. I've checked and the include_path lists the correct dirs in both cases.
View 4 Replies
ADVERTISEMENT
Jun 7, 2015
I recently got a SSL-certificate for my website. Now the old links to my website (using only http) doesnt work, the visitors just getting redirected to my index page. How can I change my .htaccess so both http and https works, but keep https as the preferred? Or even better, redirect old http links to https? I'm not using www.
My current .htaccess:
RewriteCond %{HTTPS} off
RewriteRule (.*) https ://%{HTTP_HOST}%{REQUEST_URI}
View 2 Replies
View Related
Aug 7, 2014
We have few application which serve static information to the users like excel sheet.
We used to place the .xls file in the docroot and it will be accessed using URL
for example, I'll place a file named test.xls and access it through [URL]
Problem here is if i modified the file content and accesed it through [URL] , it is showing the old content. New content is not displaying.
But the same if i did with .txt file , it showing the updated content for .txt file
Dont know why only xls files are not reflecting.
View 2 Replies
View Related
Oct 7, 2014
I´ve read that a whole https website might be better for SEO than just a mixed version. So I want to change the whole website to https.
We are using Plesk 12 on Win 2008 R2.
One Website is using DotNetNuke 7.3.2.
How can I automatically set the whole website to https?
What happens to the users that just type domainname.com without http or https.?
What is the right search engine friendly technique to permanently redirect to the https version even when the user is not using the application protocol prefix http/https?
Where can I do the setup in Plesk 12 fro Windows?
Are their any other drawbacks that I have to think over before I do the changes?
View 5 Replies
View Related
Jul 6, 2014
I have set up an Apache web server that has ssl enabled. If I go to https://myserver.com I get the 'it works!' page and the certificate is valid and trusted. If I go to https://myserver.com/myapp that also works (it's an Oracle weblogic deployed java app that I'm fronting with Apache).
I would like to configure Apache so that when a user goes to simply https://myserver.com it automatically directs them to https://myserver.com/myapp rather than showing the 'It works!' page. I have read some documentation and experimented with setting a redirect via the https.conf file and even the ssl.conf file but nothing seems to work. I either get a 404 or simply the 'It works! page.
View 1 Replies
View Related
Apr 24, 2009
We are having this problem with ecatel, as they still have not helped us after 4 days of asking to help improve on the problems we are having right now with SSH.
Problem: SSH can not be accessed. It can not be restarted in WHM. Firewall has been disabled just incase it's the one blocking it.
Retarting SSH in cPanel returns the message
Restarting SSH Daemon
Waiting for sshd to restart..............finished.
sshd (/usr/local/cpanel/whostmgr/bin/whostmgr ./ressshd) running as root with PID 6537
sshd (/usr/sbin/sshd) running as root with PID 6567
Apr 24 08:14:15 server1 sshd[5778]: Received signal 15; terminating.
sshd has failed, please contact the sysadmin.
I tried running [url]It just brought me this message
Requesting script ... Done.
Executing script ...
Attempting to locate sshd binaries installed on the system ...
Located /usr/sbin/sshd
Done.
Killing exisiting sshd processes...
Stopping sshd: [ OK ]
Done.
configuring sshd to run on port 22
/usr/sbin/sshd successfully started!
root 5778 0.0 0.0 7132 1132 ? Rs 08:00 0:00 /usr/sbin/sshd -f /var/cpanel/safe_sshd
Done.
The message says it OK. But it isn't. When I access SSH, is still not accessible. Restarting it causes the same error message as above.
I updated cPanel, software and RPMs to latest stable. I know reinstalling "forcibly" SSH rpms could help, but cPanel 11 does not have that option.
View 14 Replies
View Related
Mar 17, 2013
I have a tiny "webpage" in an Apache server running on my computer. I've got for it this .htaccess file: URL...I have written it by googling,.(I don't really know very much about Apache HTTPD, but my Java suite requires this stuff, so here I am). Supposedly the first paragraph is to avoid Google Chrome from caching my files and the second part (the Order sentences) are to allow anyone to view only those kinds of files (which is otherwise let them see everything but folder roots.
And here is the httpd.conf, which I've modified almost only to change the listen port, the server name, and to replace the AllowOverride None into AllowOverride All so that .htaccess is actually used (I've deleted the comments for readability).URL....
I had never heard of something similar, "I can only load one instance of each file". In explanation, the only html file there's, runs from time to time a PHP script. Let's say I run it on localhost for example. Then everything is going fine. But I open a new tab, and load the same page (while the another one is yet open), and I'll get a 412 HTTP error. Similar thing happens if I try to load the webpage from another device. And, with my little experience with Apache HTTPD, I guess it's because of this .htaccess or httpd.conf files. Why does this happen or how can I solve it (either it be or not related to one of these files, I'll do whatever is needed)?
Apache 2.2.22 which can be found [link URL....]here[/link] in Windows 8 x86.
View 6 Replies
View Related
Aug 1, 2008
I just picked up a WiredTree VPS account, but have never really dabbled deep into server-related knowledge. I was wondering what one would do to rid of the "Great Success!
Apache is working on your cPanel® and WHM™ Server" pages when subdomains are accessed?
View 0 Replies
View Related
Mar 19, 2009
I see some hosts provide fully managed VPS. If that's the case, what does that mean exactly? Does it mean the host manages updates and backups and that kind thing? what other maintenance does full managed VPS can provide besides updates and backups?
View 7 Replies
View Related
Jan 19, 2008
ERROR: Unable to include the DB/mysql.php file for `mysql://poweradmin-user:***@localhost/pmwh'
Does someone has an idea? I'v installed it according this howto:[url] yet it is giving me this error .
View 1 Replies
View Related
Sep 30, 2007
I am running a Windows 2003 with PLESK on it which has php support. But i am not able to "include" .php pages into my .html pages or .php into .php.
Like on Linux servers we use phpinclude() to include .php pages n .html, but its not working on Windows server for me.
View 6 Replies
View Related
Nov 19, 2007
I have a server running PLESK 8.2 (latest version). With PHP4 and 5 support. I want to include .php files into .html (which work fine on LINUX CPANEL but on on WINDOWS PLESK).
Please can anyone suggest how can i make my WINDOWS server work so that it includes .php into .html. (.php included in .php works fine).
ALSO i tried to add (application/x-httpd-php in IIS MIME TYPES to extension .html and even .php but it did not work.)
View 5 Replies
View Related
Jan 8, 2007
Ive searched google and this forum for hours and have not found any solution to this below error on a site of mine.
I am using php 5.2
Warning: include() [function.include]: URL file-access is disabled in the server configuration in /home/comosabe/public_html/footer.php on line 5
View 2 Replies
View Related
Mar 13, 2007
Fantastico has released a new update which patches a remote include exploit found in their popular product.
Of course you need to have a valid user account through cPanel in order to use this.
View 3 Replies
View Related
Jun 18, 2008
We transfer some hosted website from our usa server to our cana server and they have function.include error in new server.
View 2 Replies
View Related
Oct 18, 2007
We have a strange issue where include('./somebadfilepath.txt');
Will not output the standard WARNING from PHP. Instead it just displays a blank page.
phpsuexec is installed.
This also happens for other functions like fopen or fopen when supplied a URL path. No error,
View 4 Replies
View Related
May 19, 2008
if its possible to display subdomains on the Apachelog page? For example under "vhost" it would list the full website address of each subdomain?
View 2 Replies
View Related
Feb 8, 2014
I run a the polyglot website [URL] .... and my question is about "how to serve a page in the language preferred by the user, if available?"
At the moment I use Multiviews to add a language code to the requested URL according to the AcceptLanguage header (e.g. if "tr", serve index.html.tr instead of index.html), but this information doesn't always match user wish and I was told that serving different filenames for the same requested URI can prevent proper pages indexing by search engines.
So, I will now store web pages in each language in a specific directory, e.g. subdirectories en, it ru, tr, etc. For instance /tr/index.html will be in Turkish.
On every page, user can change language clicking on a link showing e.g. "uk" for Ukrainian. Now I want that once they do that all pages requested by the same client be served in the same language, unless/until user click on another language link.
I know that I could set a cookie or use HTTP-REFERER for that, but possibly the browser can be set to refuse cookies or not sent the Referer HTTP header.
So my question is : knowing that when a user click on a language link we serve a page in the corresponding directory, how could I reuse that information for next request of the same client (same IP address), including it in a RewriteCond directive so that I can serve requested page in the same language directory, if it exists.
I wish to avoid server side scripting (at present the website is 100% static).
View 1 Replies
View Related
Oct 13, 2014
The sql server I have my users use is on a different server from which plesk is installed. Plesk should include the size of the user's databases from the external server as well otherwise the user can have a database as large as he wants. It's no longer restricted by the plans limits.
View 7 Replies
View Related
Feb 10, 2015
I'm build Plesk Panel for Linux and Presence Builder, I don't want my user can upload their website to hosting via File Manager. How can I do it...
View 2 Replies
View Related
Oct 20, 2009
I need to change the server configuration on Plesk such that the SuexecUserGroup directive is removed, so the user's cgi scripts run as the apache user (www-data), rather than as the user specified in that directive (the domain user), as on an unshared (non-VPS) server. I don't care about security from other domains because only one domain runs on it anyway, so making the user domain-specific is irrelevant from a security point of view and stops some of the user's code working.
This directive is found in
/var/www/vhosts/domainname.com/conf/httpd.include
and is:
SuexecUserGroup user psacln
(this line appears twice, for ports 443 and 80)
I understand that this file can't be modified, as it may be overwritten by Plesk. Therefore additional directives must go in the vhost.conf file.
Will the following vhost.conf file do the trick and override the directives in httpd.include?
<VirtualHost domainIP:443>
SuexecUserGroup www-data www-data
</VirtualHost>
<VirtualHost domainIP:80>
SuexecUserGroup www-data www-data
</VirtualHost>
View 1 Replies
View Related
Apr 22, 2015
So I was trying to look up something from the horde Databases just to find that the full server backup that can be triggered in "tools & settings" -> "backup manager" does NOT include the horde and roundcube databases, even with "configuration and content" selected.
Sure, there are 7 days worth of daily backups in /var/lib/dumps but it would be nice to have those files included in the "full backup" Or am I missing something here?
View 4 Replies
View Related
May 26, 2008
Say I have 2 websites and they all use file.php which is located on mainserver.com/file.php.
I want to use the file like this:
website1.com/file.php
website2.com/file.php
View 2 Replies
View Related