I have a fresh VPS installation from my provider (Windows 2008 R2, IIS 7.5).
The default web site works fine: http://5.9.251.167/
I created a new website, and binding for http://new.ianquigley.com
On that server and everywhere else that Domain maps to the IP address.
We are using nginx with php-fpm. We plan to make first page static (generate html file). if we have 100 concurrent connections, how we can handle file regeneration? basically we need generate new file index_new.html, then delete index.html, and then move index_new.html to index.html. What happens when index.html file was deleted? User gets 404 error? Or nginx handles file from OS cache?
I'm setting my son up so he can manage his simple website by editing a file on dropbox.
My nginx config looks like this:---
server {
listen 80;
server_name name.com *.name.com;
location / {
proxy_pass https://dl.dropbox.com/u/12345678/index.html;
}
}
This works fine for serving the index.html file.
I have placed .htaccess file in my server's root folder with following content,
Redirect 303 /index.html http://mysite.com/index.php
to redirect my index.html to index.php,
but it has created one issue that some the my .php files are not getting displayed, it displays blank page.
so want to restore all the changes done by .htaccess file,
do anyone have any idea how to get out of this problem
I'm messing around with Apache and I was wondering how to redirect Apache from it's Index.html file to another file temporarily. I want to be able to go to 127.0.0.1 (or localhost) on my browser and for it to take me to a file I created called Index2.html (Also in /var/www).
This is an awkward one, I have received some files from a windows machine which have been named things like
"----index.html"
When I try to grep hello * in a directory containing these files I get grep errors and when I try to mv ----index.html index.html there are similar errors:
mv: unrecognized option '----index.html'
Try `mv --help' for more information.
Can anyone shed any light on this?
I'm running an Apache 2 server from my raspberry pi, and everything works fine. I wanted to configure ".htaccess", so I had to move some files around. So in "/var/www", I created a file called "html" and moved all my pictures, and webpages into it. However, I left "index.html" out inside of "/var/www." All of this works fine, except for one thing.
I have what I believe is a fairly standard fastcgi/php5-fpm setup using Unix socks, and the configuration file for my website (excuse the find&replace) is the following:
server {
listen 80;
server_name example.com www.example.com;
access_log /srv/vhost/sites/example/logs/access.log;
error_log /srv/vhost/sites/example/logs/error.
I suppose this is more of a house keeping question, but here it goes.
If I create a backup file of my index.html called index.html.bak, is it possible that someone from the outside using http on my apache2 server is able to list the contents of my /var/www directory? I currently know no method of doing this, but this could be due to my lack of experience in this area.