Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x

Web Servers

32K

Solutions

21K

Contributors

A web server refers to the software that helps to deliver web content that can be accessed either through the Internet or through an intranet. The primary function of a web server is to store, process and deliver web pages to clients. The communication between client and server takes place using the Hypertext Transfer Protocol (HTTP). The most common use of web servers is to host websites, but there are other uses such as gaming, data storage, running enterprise applications, handling email, FTP, etc.

Share tech news, updates, or what's on your mind.

Sign up to Post

Hi Experts,

Likely this is a Windows issue, but I am posting under PHP just in case.

I'm trying to use PHP to upload files to  the server.  I'm developing, so the server and the client, are actually the same Win 7 x64 PC with IIS.

Once I upload the files using the following script they get locked in the target directory.
        global $PATH_TO_ROOT;
        $attach_dir = $PATH_TO_ROOT . 'attachments/';
        $client_dir = $attach_dir . 'client-' . $client_id;
        
        //Check if client directory exists
        if (!is_dir($client_dir)){ 
            mkdir($client_dir);
            copy($attach_dir . 'client-0/index.php', $client_dir . '/index.php');  //Security-purposes
        }
        
        //Check if Progress Directory exists
        $progress_dir = $client_dir . '/prog-' . $progress_id;
        if (!is_dir($progress_dir)){ 
            mkdir($progress_dir);
            copy($attach_dir . 'client-0/index.php', $progress_dir . '/index.php');  //Security-purposes
        }
        
        //Upload file
        $temp_file = $_FILES['file']['tmp_name'][$file_no];
        $file = str_replace(' ', '_', $file);
        $dest = $progress_dir . '/' . $file;
        move_uploaded_file($temp_file, $dest);

Open in new window


By locked, I mean that I get access denied both when using <a href=".../myfile.txt">and by trying to opening through the File Explorer. The only way to unlock them is by going into Safe Mode as explained here.

I dont think this is my code, but rather my settings in Windows, but I have posted this under both topics. I am also thinking that the IIS_IUSRS is probably doing upload and maybe that is locking it, but it does have full permissions to the root directory.

Any help will be greatly appreciated.
0
Hire Technology Freelancers with Gigs
LVL 11
Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Hi Experts,

If I have a file at
www.domain.com/downloads/myfile.xlsx

which is at
C:\inetpub\wwwroot\domain.com/downloads/myfile.xlsx

My question is, from  domain.com/mod/index.php, how would I write my <a> tag to engage download?

I have <a href="../downloads/myfile.xlsx" target="_blank">, but I am getting Permission Denied.

Thank you

Edit: This may be a Windows Question.
0
I have a domain name registered with email hosting from Provider 1. I have a website built using Wix (Provider 2) and need to link the domain/pages at Wix to the registered domain.

What settings at Wix and at Provider 1 are required to make the above work?
0
I have a set of HTML files as an output from Project Analyzer (it documents my VBA projects into a navigatable set of web pages). I'd like to put it on my web server - but if I do my entire code will be open to anyone. So I'd like to restrict access to ONLY if accessed from my WordPress site where I can include a token/URL parameter.

It's not practical to modify/put_anything in the 1,000s of web pages produced by Project Analyzer. Hence the need to limit access globally.

Is this possible? If so I'd be interested in any ideas.

Thanks
0
I'm about to decommission an old Exchange 2003 Server and was going through the logs.
In the IIS logs, I found suspicious activity that appears to be port scanning.  

Can any one shed some light on this?  
Should I be taking any precautions before decommissioning this server (which needs to be online when doing so, although I disconnected it from the network at the moment)?  

#Software: Microsoft Internet Information Services 6.0
#Version: 1.0
#Date: 2017-12-27 00:49:47
#Fields: date time s-sitename s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs(User-Agent) sc-status sc-substatus sc-win32-status 
2017-12-27 00:49:47 W3SVC1 10.1.1.24 GET /index.html - 80 - 5.189.164.176 masscan/1.0+(https://github.com/robertdavidgraham/masscan) 200 0 0
#Software: Microsoft Internet Information Services 6.0
#Version: 1.0
#Date: 2017-12-27 02:41:54
#Fields: date time s-sitename s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs(User-Agent) sc-status sc-substatus sc-win32-status 
2017-12-27 02:41:54 W3SVC1 10.1.1.24 GET /index.html - 80 - 185.110.132.232 Scanbot 200 0 0
#Software: Microsoft Internet Information Services 6.0
#Version: 1.0
#Date: 2017-12-27 04:36:54
#Fields: date time s-sitename s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs(User-Agent) sc-status sc-substatus sc-win32-status 
2017-12-27 04:36:54 W3SVC1 10.1.1.24 GET /xmlrpc.php - 80 - 185.188.207.6 curl/7.35.0 404 0 2
#Software: Microsoft Internet Information 

Open in new window

0
Hi,
  I have CFM page that used to work just fine, but recently it is generating an error like this:
-------------------------------------------------------------------------------------
Invalid CFML construct found on line 28 at column 189.
ColdFusion was looking at the following text:  /"

The CFML compiler was processing:

An expression that began on line 28, column 179.
The expression might be missing an ending #, for example, #expr instead of #expr#.
The body of a CFMAIL tag beginning on line 20, column 10.
--------------------------------------------------------------------------------------------------

  Here is the statement that is failing.

<a href="https://www.sourcedomain.com/sports/event/050036DC?artistid=873854&majorcatid=10001&minorcatid=1&tm_link=browse_msg-0_0500535DD86A36DC#efeat4212">
<img border="0" src="http://www.mydomain.info/eimage/#Picture#" align="middle">
</a>

  I know it is the # sign that is the causing the problem, but I don't how how to fix this.

Thanks.
0
Hi.

I have installed WAMP server to act as my local host. I felt the install worked correctly and I was able to launch php files on my local host. I was also able to go into the MyPhp Admin section on WAMP at my localhost and look at databases etc.

However, I had been trying to use the windows cmd (dos) box to see what version of mysql I had running which I couldn't do. I carried out some searches on the internet and I'm now wondering if my WAMP has only installed partially, as I seem to be missing some functionality (I think).

When I left click on the WAMP icon in my tray icon (it is green and running) I get the following menu displayed:

My Wamp Menu
However, looking online, people seem to be getting something more like this...

otherwampdisplays.png
I have version 3.1 which is fairly new and I didn't interrupt the install. Is there something obvious I'm not getting? I do have an SQL folder when  I install wamp - located here : C:\wamp64\bin\mysql\mysql5.7.19

I wanted to create tables and databases through the command prompt, either through the windows command prompt or the mysql command prompt which I thought might be contained within WAMP. But can't seem to do either.

Any help on what's not right would be great.

Many thanks,

Adam
0
An older website has address site.com, but now we need the address site.net to point to site.com as well. I understand we need to create a dummy web in IIS for site.net, and on Properties of the dummy web, tab Documents, one can choose to redirect to site.com. However, I'd still need to figure some issues as follows:

1. Is the dummy site a must? (can such redirection be done without the dummy site - IIS only)
2. Properties for the dummy site in IIS don't make much sense - one should just leave the defaults?
3. In this case above one should choose "Permanent redirection" I guess. Then a user going to "site.net" will actually get to the default page of site.com. But what happens if a user tries to get to "site.net/page2.html"? Where page2.html is a page in the root folder of site.com.
0
I have installed ssl certificates on WebServers using IIS since 6.0 and I need to install one on a server now before going live and although users type a URL into a browser to access the webpage and sign in to perform several types of financial transactions,  The first thing I looked for was the inet pub folder and there was none.  Needless to say there was no IIS of any version and no CSR to submit and no self installation application to install the cert for me.
Now I'm not sure whether or not the ssl certs I use for our web servers are used for this type of application server and I have no clue as how to go about installing an SSL cert without IIS.  Testing is starting and so far I find that  I can't connect with the reason returned being there is no Cert installed in the Root CA Authority store. Can anyone shed some light on this subject for me or at least point me in the right direction so I can get this server secure before going live with it.      Any tips on what the dfferences are between this type of app server and a web server and how to install them on servers without IIS.  Thanks.
0
Hello Experts,

I am testing BGInfo with some of our servers. We will deploy it via GPO.

We have web servers having multiple IP Address. In BGInfo (or with a WMI query) is there a way to only show 1 IP address and not all IP addresses?

The problem is if we show all the IP Addresses of our webservers, the BGInfo information will be shifted (see example in attachment).

Thanks
2017-12-11-09_42_48-BGInfo.png
0
[Webinar On Demand] Database Backup and Recovery
LVL 11
[Webinar On Demand] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

Currently I have a dedicated an exsi 5.5 host at hostway running 2 web servers, just recently these 2 servers started to crash with a blue screen and reboot, after some dump analysis and extensive troubleshooting I've found out that these servers only crashes when they are connected to the network, if I disconnect the image from the network they stay stable. I wanted to check with someone here if anyone here has had similar issues and if I need to be looking at the server NIC as a possible cause? Any suggestions will be appreciated.
0
Hi All,

Could someone help me with the web.config code i need to ensure all websites are prefixed with www.

Many thanks
D
0
Dear Experts, please help to solve our scenario:
- Normally, we use google public DNS (8.8.8.8) for our LAN users, then they can go to our website (let's say in IP: A.B.C.D - www.website.com) properly

- When we change the DNS of LAN users to our local DNS (the same domain - website.com), they could not go to that website anymore although I specified its DNS record (www) in the DNS server.

Do you have any idea please?
0
We have a server environment consisting of a load balance (hardware), 3 web servers and a single database server.  Against the environment we have run 3 load tests, scaling up to 600 concurrent users over a 20 minute period.  On each test the response time for the page load begins to degrade at exactly the same point, when the number of concurrent users hits 100.  

Test one was done with two web servers balanced
Test two was done with three web servers balanced
Test three was done with three web servers balanced but with +2 cpu allocated

All three tests have exactly the same result.  I have had the hosting provider for the infrastructure review the network and none of the hardware elements in the route have restrictions or limits on users and the network is handling the load with ease.  The individual web servers are also handling the load, even at peak evenly and without maxing out CPU or memory. Its seems highly irregular that the drop-off point remains identical despite the increase in resource and has lead me to question whether there is a configuration or set-up default value which is reaching its limit (100) within the system.

This is a theory but it posing a major challenge to what should be a robust server set-up and I would appreciate some expert opinion on what could be causing the issue.  In preparation I have already ensured I have New Relic APM data available for all three sessions as well as general hardware monitoring data.
0
I have a 2012 R2 ADFS 3.0 server on my internal network and a 2012 R2 Windows Application Proxy in my DMZ. I have published two web apps. My issue is a double login prompt at the ADFS login page. I enter my email and password and login. It immediately reloads the same login page. I enter my creds again, and then it takes me to the web app. Both logins appear successful. There is no indication of incorrect creds.

This issue only happens for one of my web apps. The other web app only prompt once like its supposed to do. Both web apps are hosted on the same internal server.
0
Hello!. I am trying to figure out what the the problem with my configuration is. I have apache 2.4.29 with mod_cluster configured like this:

<IfModule manager_module>
	Listen 172.16.10.60:10001
</IfModule>

<VirtualHost *:80>
    RewriteEngine On
    RewriteCond %{HTTPS} off
    RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
</VirtualHost>
<VirtualHost *:10001>
	<Directory />
    	Require all granted
    </Directory>
    ServerName myservername.com
    <IfModule manager_module>
    	ManagerBalancerName innovateperu
        AllowDisplay On
        KeepAliveTimeout 300
        MaxKeepAliveRequests 0
        ServerAdvertise on 172.16.10.60:10001
        AdvertiseFrequency 5
        AdvertiseGroup 224.0.1.100:23366
        EnableMCPMReceive On
        <Location /manager>
        	SetHandler mod_cluster-manager
            Require all granted
        </Location>
        <Location />
        	Allow from all
        </Location>    
    </IfModule>
</VirtualHost>

Open in new window


My nodes are configured with wildfly 10.1.0.Final

I have tried this:

  1. Access the context using the node address. It works
[list=2]Access the context using the load balancer address. It works partially. This is weird because I can see the login form of my project, I can event log in however when I try to access another war from the menu, I receivethis error "Gateway timeout". [/list]

Does anyone have a clue?
0
Hi,

Is there a reliable way of listing all the websites hosted by the same IP?
0
I am frustrated with maintaining and creating multiple rules on the firewall, Same time to expose my servers to the internet.

I wanted to keep only one server in DMZ, wanted to access back-end servers access through that server. Fortunately, I have found Apache web server will be able to achieve this. would be appreciated for the solution and help in configuring Apache server.

Below are the environment details,

IIS Server1 Fully qualified domain Name: ice1.smartyz.com
IIS Server1 IP address: 192.168.1.10
IIS Server2 Fully qualified domain Name: ice2.smartyz.com
IIS Server2 IP address: 192.168.1.20
Apache server Fully Qualified Name: WebSrv.smartyz.com
Public IP address of Apache server: 111.X.X.X
DNS Server name for apache server: UNFYD.com  

now I wanted to access IIS server1 via the link ice1.unfyd.com
and IIS server2 via the link ice2.unfyd.com
0
Hello we have an IIS hosted website, binded to Citrix XenApp Store Front.  We have an AD server, Web Server, Citrix Server.
Currently in order to access site users need a CAC/PKI once this have authenticated they must enter a username & password to get into store front to see their application(s).  What we would like to do is get rid of the username & password, have just CAC/PKI authentication.
0
Free Tool: ZipGrep
LVL 11
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

What is the life expectancy of a Dedicated Server in a hosting company?
0
Hi all,

Long time reader first time posting.

I have been asked to setup a web server inside a DMZ that can communicate with an internal database server. We have one external IP address available with port 443 currently only being used for external access to the SonicWALL. The firewall is a SonicWALL NSA 220.

The web server will be a virtual Windows 2016 server sat on ESXi on it's own vSwitch connected to a spare port on the SonicWALL which I will configure as a DMZ port. I assuming I can configure a rule on the SonicWALL that will allow ports 443 and 80 to be forwarded to this web server and allow the web server to only communicate with the database server over 1433.

An external vendor will be configuring the application that will be running on the web server.

Does this sound like a workable solution?

Tom
0
Is there a simple rule I can add in IIS web.config file that any page that ends with .asp, should be redirected to the same name ending  .php
0
On a customer's request I have to create a reverse proxy for following URL on customer's server running Apache on CentOS 6.

URL of the back end is https://94.57.252.195/gateway/order.json

I have added following lines in a virtualhost on Apache:

SSLProxyEngine          On
ProxyPass / https://94.57.252.195/
ProxyPassReverse / https://94.57.252.195/


But when I access http://mydomain/gateway/order.json I get "Bad Request Your browser sent a request that this server could not understand." . No errors in error_logs of Apache.

I would be thankful if someone can help.
0
hi,

This is probably a noddy question as I'm quite new to this.

I want to use FTP to publish files to the public web.

On Bluehost I've setup an ftp account which I can add files to. The details shown by bluehost are:

Login:
username@mydomain.com
Path:
/home4/maydomaincom/mydomain.com/username

How can I get these files to show on my website?

I can login using my domain password and put them into the www folder, but i'd rather not use that account.

Thanks
0
Dear Wizards, I got this error in Office Online Server, could you please help? Many  thanks!
error.PNG
0

Web Servers

32K

Solutions

21K

Contributors

A web server refers to the software that helps to deliver web content that can be accessed either through the Internet or through an intranet. The primary function of a web server is to store, process and deliver web pages to clients. The communication between client and server takes place using the Hypertext Transfer Protocol (HTTP). The most common use of web servers is to host websites, but there are other uses such as gaming, data storage, running enterprise applications, handling email, FTP, etc.