Hot answers tagged

18 votes

Allowing access to an Apache virtual host from the local network only

People landing in this answer, please note that this is specific for Apache 2.2. Apache 2.4 has deprecated these directives. The new way is using the module mod_authz_host and the Require directives....
nachoparker's user avatar
10 votes
Accepted

Vulnerability in /boaform/admin/formLogin?

This appears to be related to a cluster of exploits that target fiber optic routers. If you are running a simple HTTP website and you are not maintaining fiber optic router equipment, I believe you ...
Maximillian Laumeister's user avatar
7 votes
Accepted

Can file encoding change when FTP is used?

You are probably seeing a difference in line-endings. When transferring a file in ASCII/Text mode (as opposed to "Binary mode") then most FTP clients will convert/normalise line-endings to the OS ...
MrWhite's user avatar
  • 42.7k
5 votes

If i use 301 redirects (to bounce the requests), will the other destination be aware of my Server IP?

Well aren't you friendly... "Hey Google, I'm having a DOS, but im making it your problem, thanks" First: There is no difference for you between serving an 301 or an 404 error page. Your ...
Martijn's user avatar
  • 6,836
4 votes

How do I use URL redirection with reverse proxy?

Under Apache, using the ProxyPassReverse directive will do what you want. It will take the redirect from the backend server and replace the backend host name with the front end name. From the ...
Stephen Ostermiller's user avatar
3 votes

File priority in Joomla website

If you create a page using Joomla and call it 'sitemap' it should display the content of that created page in the theme framework 'on the fly' for you. Joomla does not create a sitemap.html or sitemap....
Michael Moriarty's user avatar
3 votes

Have disabled apache site config file 000-default.conf, but it still seems active. Why?

I agree with user 'closetnoc' who replied at [2015-Aug-2 00:24:36Z] in response to the original post that wrote "The 000-default.conf site is a catch-all for any request the server does not have a ...
kman's user avatar
  • 31
3 votes

How do I migrate mail from one shared hosting account to another?

I would like to share the steps I followed recently in regards to this question. If you want to transfer the email accounts and messages for a domain from one server to another, you can easily do ...
Red Virus's user avatar
  • 171
3 votes

Using PHP inside .html files not working as expected

<!--?php echo "It works!"; ?--> This is what you see when you analyse the element using the browsers Object Inspector ie. the interpreted source. This is not the HTML source as sent from the ...
MrWhite's user avatar
  • 42.7k
3 votes
Accepted

Redirect at exact moment in time

You could just include a rule in your index.php to check the current time against the time you want to launch. So if you wanted to launch on 2015-12-01 at 15:00UTC, something like this should work: &...
Andrew Lott's user avatar
  • 5,874
3 votes

Can file encoding change when FTP is used?

Yes. Don't transfer UTF-16 files in ASCII mode; use binary mode to avoid data corruption here. FTP's transformation of \r\n to \n will corrupt the remainder of the file if it happens to contain the ...
Joshua's user avatar
  • 131
3 votes
Accepted

What does "Require all granted" on Directory / (root) REALY means? (Apache 2.4 on CentOS7

This is an issue I've ran into a few times & it stems from a change in terminology from Apache 2.2 to Apache 2.4 (detailed here). Access control options that were previously addressed with 'Order ...
Matthew Haeck's user avatar
3 votes
Accepted

Apache not working on AWS Linux after reboot - 301 Response code

I figured out the issue. When an AWS instance is rebooted, the DNS address changes. As I am using Wordpress, I need to update the siteurl and home url in the MySQL Database for the wordpress site to ...
Brien Crean's user avatar
3 votes
Accepted

Separate web hosting and mail server (CPanel)

There is absolutely no need for a mail server to be on the same machine, in the same building, or even located in the same country as the web server. In your DNS records you will see MX records, ...
GeoffAtkins's user avatar
  • 2,209
3 votes
Accepted

Google Analytics showing a big spike of Linux Chrome users

As the multiple previous people mentioned, you need to check your data. A huge amount of that traffic could be from one IP, it's trivially easy to write a bot that rotates fictional IP addresses. Even ...
adam-asdf's user avatar
  • 2,077
3 votes
Accepted

How to stop backslash working on XAMPP

Backslashes in file-paths in Apache directives As far as I know, there is no option in Apache to prevent Apache/Windows from interpreting the backslash as a directory separator. However, it is ...
MrWhite's user avatar
  • 42.7k
3 votes
Accepted

Need to set up cgi on VPS to execute Perl (.pl) files

There are three pieces of Apache configuration that you need: The CGI module is loaded The ExecCGI permissions is enabled. Handler configuration for your script's file extension. Loading the CGI ...
Stephen Ostermiller's user avatar
3 votes
Accepted

Can't access API that's on a local linux server externally

Ok... I've been trying to solve this problem for the past 4 days and it turned out that the problem was with the firewall on Linux. If anyone faces the same problem, run these commands. iptables -I ...
Wanderer's user avatar
2 votes
Accepted

Sandbox a folder in linux / CPanel

I would personally recommend installing a Linux System Container Manager, such as LXD, to set up a Linux Container on your server to isolate the folder from the rest of the system. Try LXD Online ...
Grant Miller's user avatar
  • 1,173
2 votes

Using PHP inside .html files not working as expected

My apache installation has a php5.conf file I added this to it. <FilesMatch ".+\.html$"> SetHandler application/x-httpd-php </FilesMatch> In my .htaccess file I also changed ...
ScottD's user avatar
  • 51
2 votes

Enable remote access to MySQL server (Linux)

You should only allow a static remote IP access to your local MySQL server, since enabling all IP addresses is a security hazard. Use the guide below as a reference for the procedure that you need to ...
Simon Hayter's user avatar
  • 32.9k
2 votes
Accepted

Trying to install web2py on a shared server (Dreamhost)

Well, I wasn't able to get things working following this tutorial, and many tests and variations. Finally, I found a very interesting link in the uWSGI site, which actually made things work! The only ...
jcoppens's user avatar
  • 171
2 votes

Can file encoding change when FTP is used?

The answer I've accepted on this is correct however I'm adding some notes about how I used this information to work out what was going on. The question uses file1.html and file2.html for simplicity. ...
Andy's user avatar
  • 247
2 votes

Can file encoding change when FTP is used?

Yes , ftp does some encoding changes. Data is transferred from a storage device in the sending Host to a storage device in the receiving Host. Often it is necessary to perform certain transformations ...
Pramod_Para's user avatar
2 votes

.htaccess redirect based HTTP_REFERER

Shouldn't you be redirecting the blogs themselves instead? You would need to do so anyway to help the search engines and referral links. That way the page that the t.co links points to will get picked ...
Theo van der Zee's user avatar
2 votes

Logged Out Too Soon; PHP Sessions Expire Too Quickly. Is this a Linux, CentOS, Cookies, CPanel problem?

Thanks for the trouble-shooting help. I have solved the problem -- by specifying a custom folder for storing temporary session data. Here's how: Locate the folder where your session data files are ...
Photon's user avatar
  • 51
2 votes

Change server structure to be able to view files/folders in browser (Dedictaed server)

Web servers don't make every file on a computer available. That would be a huge security problem. Rather, by default they make a single directory available. As the message says, that directory is /...
Stephen Ostermiller's user avatar
2 votes
Accepted

Dealing with a massive images/assets directory in a staging environment

Generally, it's not a good idea to share content between a live site and its staging installation. A staging copy should be isolated, precisely to avoid messing up anything on the production ...
aaa's user avatar
  • 266
2 votes

CPanel Rearrange account can't find home2

I've contacted CPanel's support. The problem was you need to setup 2 variables in En WHM -> Server Configuration -> Basic WebHost Manager® Setup, HOMEMATCH and HOMEDIR I was changing just the ...
Alex Angelico's user avatar
2 votes

Can I legally publish screenshots from Linux apps on my website?

Yes or no :P It depends on a few things, this article outlines some I think the takeaway is this quote from the very end of the article "It’s likely that if you are using a screen capture of ...
Steve's user avatar
  • 8,418

Only top scored, non community-wiki answers of a minimum length are eligible