A web server is a program that responds to network requests over the HTTP or HTTPS protocol.

learn more… | top users | synonyms

2
votes
0answers
24 views

Ubuntu and web server permissions

I am going to ask a question that has already been posted many times but even though I have read many guides and posts, I still have doubts. I have a server with ubuntu 14.04 on which I have a user ...
1
vote
1answer
34 views

Is granting write-only permission on log files to certain users a good practice?

Will it be safe to enable logging into a write-only log file on a production server? I imagine, that this would protect the log file from unwanted eyes. Are there any drawbacks of using this technique?...
1
vote
1answer
23 views

login with apache user

I'm following this tutorial step by step,for Here we clone the repo into a chmodded /var/www/[site_dir] folder. Note that we switch to the www-data user before running the git clone command. ...
2
votes
3answers
134 views

How can I set up a secure LAMP stack on CentOS?

I have been using linux for years, but I need some clarification on what are probably pretty basic principles to how the OS works, but I definitely need clarification due to security concerns. I am ...
0
votes
2answers
267 views

Host a server with NGINX using VPN behind a NAT

so I was hosting a server using NGINX on a Raspberry Pi using a T-Mobile mobile router. All was working fine, till I noticed today that T-Mobile started to put me behind a NAT sometimes. So I heard ...
1
vote
1answer
61 views

Should I use hardlinks for my “sites-enabled” folder instead of softlinks?

Every article I find about web servers suggest creating a sites-available and sites-enabled directory within apache/nginx/etc. Then, using symbolic (soft) links, create a link from the available to ...
0
votes
5answers
53 views

find IP and PORT in use by Apache

How can I find which IP:PORT Apache web server is monitoring? There are some network commands, but they show the TCP port in use. The machine has multiple network interfaces and the Listen section in ...
-1
votes
2answers
52 views

How can I see the number of visitors in my website via CLI

How can I find out the number of visitors in real time in my website? I'd like to access to it via SSH, so it should be some CLI programs. In the worst case scenario I was thinking to analyse the ...
1
vote
1answer
3k views

mod-mono-server 4 is not working, while 2 does

I need to deploy an ASP.NET MVC4 (MVC3 at least) application on Centos 6 server. I've installed Mono 3.2.1, XSP4, mod_mono (for use with apache web server) and succesfully ran the test application ...
3
votes
3answers
4k views

tomcat 8 will not start after initial install

I am trying to install tomcat on a new CentOS 7 virtual machine. I successfully installed apache httpd, and am able to get the apache test page when I type the ip of the virtual machine into a web ...
0
votes
0answers
13 views

Cannot start GlassFish 4.0 on RedHat 5.11

I successfully installed Java jdk1.7.0_79 and NetBeans 4.0 on my server Red Hat 5.11 Server with these instructions I run GlassFish using the command: [root@lts5srv1 bin]# ./asadmin start-domain ...
0
votes
1answer
63 views

How could I know my server's operating system? [duplicate]

I’m connected to my shared hosting server via ssh, and all I know is that it’s under Linux. I tried commands like: cat /etc/issue/ and lsb_release -a but got: $ cat /etc/issue/ No such file or ...
4
votes
1answer
86 views

OpenBSD httpd.conf conditionals

Note: this question is about the built-in OpenBSD http server named httpd and its configuration. It does not apply to any other web servers. Is it possible to make runtime conditional configurations ...
4
votes
2answers
8k views

How to grep top most frequent error messages in a unix logfile

If I have a file example apache log file How to extract the top most frequent error messages in a unix log file with no timestamps the key is most frequent error message should come on top of the ...
2
votes
4answers
823 views

Creating a public document directory for a normal user

We usually see personal web pages like http://a-site.com/~someone/, in this case, "someone" is a user of "a-site". How to enable this by default, so whenever we add a new user "foo", then http://a-...
3
votes
1answer
490 views

Creating a local in-house testing web server

What we are trying to achieve is to have an in house Linux-based (probably Ubuntu) web server which we can test on before pushing to our remote dedicated hosting server. The problem we are going to ...
3
votes
1answer
1k views

Running MPlayer through a PHP script

I'm trying to open an MPlayer instance on my server from a PHP script (using PHP's system() function). I've looked into making mplayer a slave ( http://www.mplayerhq.hu/DOCS/tech/slave.txt ) but when ...
0
votes
1answer
18 views

Webserver Browser Application

Ok so this might sound crazy, but what I want is to be able to go domain.com/chrome and have a browser open in my browser. The purpose is basically a proxy when I'm in a Net-Nanny environment. Am ...
1
vote
0answers
12 views

MOD_PROXY with Squid

I am not entirely sure how to ask this question so it may have been discussed before. Attached below is an image of my image server setup. Here is how it works: A User visits my real estate website ...
2
votes
2answers
9k views

What is the best place to put php files above server root directory?

I am running a web application and I want to move a directory containing my php files above the server root directory. Where would be the best place to put them? On my web server I rent from ...
2
votes
0answers
38 views

Virtual Machine failover with KVM [closed]

I'm trying failover of VM's in KVM Linux as a learning program. Scenario: 2 HV Bare metal (2 physical servers) having CentOS with KVM. On both the HV there are multiple web-server with guest ...
2
votes
1answer
933 views

redirect web server with no-ip and port forwarding in livebox

I want my Apache web server running on a Livebox (home router appliance running Linux) to be accessible from the Internet (WAN). I installed and configured the application noip2 on my Ubuntu PC. ...
1
vote
1answer
666 views

svn and webserver files ownerships

I've an issue with file ownerships. I have a drupal website and the "files" folder needs to be owned by "www-data" in order to let the users to upload files with php. However I'm now using svn and I ...
2
votes
2answers
3k views

How to set up file permissions/ownership for FTP/Apache/PHP on CentOS

I have basic understanding of chmod and CentOS file permissions. 777 stands for 111111111 and rwx for each root, group, user, etc. What I can't get my head around is setting up Apache, FTP and PHP to ...
0
votes
1answer
62 views

rsync complication on sync

We have 2 Web Server node Primary and secondary, if the primary is down by any reason secondary will act as Prim. Now if we talk about the codes we which is on both the host. we should be ...
1
vote
2answers
484 views

SSH key for HTTP

Is it possible to set something up like SSH Keys for http traffic, so that a browser must have the matching key in order to access?
1
vote
1answer
1k views

How can I force the IP address & hostname to only be exposed as domain.com on a Tomcat Server?

I have a web server which is running on CentOS 6 on top of Tomcat7. Everything works fine, however, there are many ways that users can access the server. For instance: IP Address domain.com www....
0
votes
1answer
20 views

How to restrict restrict remote administration software to one domain name?

I currently have a server hosting a number of websites on a debian server. I understand that all my domain names share the same IP so any of them will grant me access through SSH, but I was wondering ...
0
votes
1answer
403 views

How to access my webserver from the host machine? [duplicate]

My host OS is Gentoo, guest OS - Fedora. I have a web server on Fedora on port 8686 and it works perfectly on guest OS, but I can't access it on my host OS. I tried to use bridged network (then I got ...
2
votes
2answers
3k views

Redirect the default HTTP port to an application

On my CentOS server at mydomain.com, I have an svn web application running on port 8880. I want to hide the port: at this moment, if anybody wants to access, they need to access through http://...
2
votes
1answer
262 views

LAMP Hardening, Transparent Proxy with iptables

I'm running a LAMP server with FTP(S) and several users. The users have only access to uploading PHP files and other web content. Some are running Drupal and Wordpress, but also a few home made stuff. ...
0
votes
1answer
333 views

Installing Domjudge in Fedora 19

I tried to install Domjudge in Fedora 19 (based on its documentation) and it installed successfully but when I try to start it in browser (localhost/domjudge) I get the following error: Forbidden ...
0
votes
2answers
2k views

Best way to find out what Linux Version is used on a Webserver

Is this feasible? Can I find out which distro is used to host specific webpages? Whois doesn't have info for this.
2
votes
1answer
507 views

How to move the /var/www directory to a USB HDD?

I have a default OpenBSD 5.1 install. How Can I enabled httpd, OK. QUESTION: How can I use the /dev/sd0a on /mnt/usbhdd type ffs (local, nodev) instead of the default "/var/www" directory? What ...
2
votes
1answer
204 views

How to block ip adresses which access more than n-pages in m-prediod of time?

How to block IP adresses which access more than n pages in m period of time? I want to block all auto-traffic and I am not sure how to approach this issue.
1
vote
1answer
1k views

How to use localhost in browser instead of localhost:10088?

Installed zend-server CE. I would like to use this port (10088). But anytime I enter localhost I should enter localhost:10088, because localhost doesn't work. In the hosts file I tried to enter 127....
1
vote
0answers
29 views

Port netcat request info to bash script

I have this super simple TCP server that takes requests and returns the output of handler.sh: #!/bin/bash while true ; do nc -l -p 1234 -e handler.sh; done I'd like to port the requested path to ...
0
votes
1answer
37 views

Shell to do action, when someone visited my webpage [closed]

Can someone make a script that beeps or does some action when a user visits my webpage (apache2)?
0
votes
0answers
54 views

Setting up 12X2TB Centos Storage Server

I'm having some issues setting up a storage server for an image hosting website. I used to order smaller servers but this time I decided to order a large storage server. I had the data center set-up ...
0
votes
0answers
52 views

Serve ASP.NET Webforms content on Ubuntu 16.04 from 2 different root directories using one XSP4 child process?

We would like to serve ASP.NET Webforms content on Ubuntu 16.04 from 2 different root directories using one XSP4 child process. In /etc/mono-server4, I created debian.webapp specifying root ...
0
votes
1answer
48 views

SSH connect to HOSTNAME port 22: Connection timed out

Using the "SSH Shell Access" in my Cpanel I have added my public and private key in the import key section and I also have authorised them. But I am getting this "Connection timed out" error on port ...
0
votes
1answer
59 views

How do I find the version of JQuery that is installed on a Linux web server?

All the methods I found on the Internet involved using a .jsp page and a web browser. I have Linux servers with no GUI desktops. I do not want to use the web browser on a desktop to view a .jsp ...
1
vote
6answers
894 views

Light-weight alternative to Apache

In my set-up, I run (as root) ln -s ~/share /var/www. By doing this, anyone on the local network will access the ~/share directory by pointing their browsers at http://hostname/share. I use apache, ...
0
votes
0answers
35 views

How to install libav on Linux 14.04 Server?

I have setup a webserver with ubuntu 14.04 now I have to install Libav via SSH commands. Can you please help me with those commands? And Please do let me know how to I check that its properly ...
1
vote
0answers
21 views

Push same webserver config to multiple front ends

We are using a load balancer for our web servers (3 debian clones). I was wondering if it was possible to push the same config onto the three web servers and restart each instance all in one shot so ...
3
votes
3answers
260 views

How to host a website on personal computer

I want to start hosting my website at my own computer as well websites of my friends too (say mini hosting platform). I learned Debian, Bind9 and Apache for this purpose. On my system everything is ...
3
votes
2answers
2k views

How can I Forward a subDomain to a specific port?

My apologies if this has been asked before. I haven't found an adequate solution so... yeah. When a specific domain, "example.com" is accessed, I want it to act normally. In other words, it should go ...
3
votes
2answers
96 views

Give /var/www files access to www-data and my user?

Any folder than I want my php code to be able to save in or any file I want it to be able to modify has to be owned by www-data. This is annoying because everything I create or want to edit without ...
1
vote
1answer
110 views

iptables rule explanation

I was looking to update iptables in our webserver which would prevent DoS attack to an extent. 1) Related to web traffic, below are the iptables rules i found. iptables -I INPUT -p tcp --dport 80 -...
0
votes
1answer
31 views

Domain forwarding/masking

We have to redirect/forward all HTTP(S) requests from one web server A to a web server B (which will show the downtime info) only if the server A is not accessible. Can we use DNS forwarding for this ...