Apache Web Server

19K

Solutions

15K

Contributors

The Apache HTTP Server is a secure, efficient and extensible server that provides HTTP services in sync with the current HTTP standards. Typically Apache is run on a Unix-like operating system, but it is available for a wide variety of operating systems, including Linux, Novell NetWare, Mac OS-X and Windows. Released under the Apache License, Apache is open-source software.

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

Sign up to Post

I have an AWS EC2 instance running Amazon Linux running Wordpress MultiSite. I'd like the sites in the Network to be able to resolve to HTTPS.

What's the best way to install multiple SSL's on a single Wordpress Server? Is is possible to list multiple SSL's in the ssl.conf file?

Thanks for your help.
0
I need to have IIS on one server and Apache Tomcat on a separate server.   Can this happen?  I have seen many pieces of how to set them up on the same server.  I need to have the IIS server send requests to the Tomcat server and then have IIS serve the requests up from Tomcat.  How would one set this up?
0
Hi,

We have an Apache webserver running Perl + Template Toolkit and a MySQL database for user access on a VM running Windows 2012 R2.

We have recently made some tweaks to the Perl code, nothing big, just a few edits and extra templates and some design changes (CSS etc). this was tested for several months on an identical dev server and we didn't see any issues.

We went live with the changes and everything was fine for about a week but now we are seeing an odd issue where the site hangs when navigating between pages then works fine for a bit and then hangs again. No pattern to this at all. Sometimes its fine for a few minutes, other times its seconds before it hangs again.

CPU usage is about 15%, Ram is at 80% but always as been as we only have 2GB on here. Neither of them peak or change when the browser hangs.

The issue we are seeing is if we browse the website using the local IP then we see this issue.

If we browse the site using localhost in the same browser (different tab) we never see this issue.

So we can be sat with the site hanging on the IP tab but still able to browse about in the other tab on localhost.

Our db is tiny (only about 200 users, the site isn't hugely busy and nothing else has changed.

Before we go rolling the system back, should we be looking anywhere in particular that could cause this disparity between browsing using the local IP and localhost?

We've:

Reset the IP stack, reinstalled VMtool drivers and reset up the …
0
After a security review of our new WordPress site it was pointed out that we're vulnerable to "External Service Redirecton - DNS". Specifically, if a URL is entered into the "Your Name" field of our Contact 7 Form then the testers have found that: "It was possible to induce the application to perform server-side DNS lookups of arbitrary domain names"

The suggested remedial action is to implement a whitelist of permitted services and hosts and to block interaction not on this whitelist.

I'm something of a newbie when it comes to this, and it occured to me (perhaps wrongly!) that there may be different whitelists; one for those who cannot enter the site, and a separate for sites to which our server is allowed to speak. Or does a whitelist imply both ways?

Anyway, all help on this gratefully received and I'm imagining this is something that's been done a zillion times before!

I'm using IIS and would prefer that answer, although Apache related help just as good because I've realised I can kind of 'translate' how to do it once I've got the idea.

Incidentally, we definitely want to avoid editing the Contact 7 form's code too much becasue this may be lost when we upgrade, even though I dare say this would fix the issue. Unfortunately the latest version has the same problem, although will let the Contact 7 team know to look into this. Would ideally like to use another form for data collection of this sort although i'm a part of a team that prevents this!

And so, in …
0
after I ran below, my owncloud become like this, any idea how to fix it ?

semanage fcontext -a -t httpd_sys_rw_content_t '/var/www/html/owncloud/data'
restorecon '/var/www/html/owncloud/data'
semanage fcontext -a -t httpd_sys_rw_content_t '/var/www/html/owncloud/config'
restorecon '/var/www/html/owncloud/config'
semanage fcontext -a -t httpd_sys_rw_content_t '/var/www/html/owncloud/apps'
restorecon '/var/www/html/owncloud/apps'

setsebool -P httpd_unified 1
setsebool -P httpd_execmem 1


123
0
BACKGROUND:
A ways back, I'd set up nameservers on my VPS (let's call them 'ns1.mydomain.com' and 'ns2.mydomain.com').  I host a couple of dozens websites on that VPS.

For all of my domains, on the domain registrar's site, I'd set the Nameservers for that domain to Custom Nameservers:  'ns1.mydomain.com' and 'ns2.mydomain.com'.

Recently, I had to ask my VPS provider to create a new server for me (let's call it 'newVPS'), leaving my previous VPS (let's call it 'oldVPS') active so I could migrate or re-create accounts and contents from the oldVPS to the newVPS.

Both the oldVPS and newVPS use WHM/CPanel admin interfaces.  
The oldVPS is setup as (cut and pasted from the WHM panel banner): 'CENTOS 6.9 i686 virtuozzo – oldvps  WHM 56.0 (build 52)'
The newVPS is setup as (cut and pasted from the WHM panel banner): 'CENTOS 7.4 virtuozzo [newvps]  v68.0.21'

My understanding (which is limited in these areas) is that the nameservers I setup on my VPS have to be associated with one of the domains I own/host on that VPS.

The nameservers which I had previously setup on oldVPS were associated with 'mydomain.com' one of the domains/accounts hosted on oldVPS.  

For simplicity, I'm thinking of creating new nameservers on newVPS and associate them with 'myotherdomain.com', another domain/account to be hosted on newVPS.

QUESTION:
How do I create my new nameservers on newVPS, say 'ns1.myotherdomain.com' and 'ns2.myotherdomain.com', presumably from newVPS's WHM (I'm …
0
I have two servers right now that are set up on my local network.

I know using Apache on Ubuntu that I edit the /etc/hosts file to create hosts (i.e. phppatternsobjectsandpractice.local) - set it to 127.0.0.1, and I can visit it on my local computer.

I want to host intranet site on one of my servers, and allow people who are connected to my network to type in a site (phppatternsobjectsandpractice.localhost) and visit the site.

Do I edit the /etc/hosts file or do I set up Bind on my two servers?

Thanks
0
I am trying to help a friend and after editing a few files the site is getting an error 500
attached are a few files from the web site
If I type the domain/index-static.html it loads but no links are working

the domain is http://datlasestates.com/

I am not sure what needs to do any guidance would be appreciated

I know the site is hosted on amazon server could this be from their side or could it be a scripting error?


here is the .htaccess file

GeoIPEnable on
SetEnvIf GEOIP_COUNTRY_CODE US AllowCountry
SetEnvIf GEOIP_COUNTRY_CODE CA AllowCountry
SetEnvIf GEOIP_COUNTRY_CODE RS AllowCountry
# SetEnvIf GEOIP_COUNTRY_CODE UA AllowCountry
# SetEnvIf GEOIP_COUNTRY_CODE RU AllowCountry

Deny from all
Allow from env=AllowCountry


RewriteEngine on

#Redirect 301 /index.html /index.php
Redirect 301 /about.html /about.php
Redirect 301 /faq.html /faq.php
Redirect 301 /recently_purchased.html /recently-purchased.php
Redirect 301 /contact.html /contact.php
Redirect 301 /sell.html /sell.php
Redirect 301 /blog.datlas.html /blog.datlas.php
Redirect 301 /philadelphia.html /philadelphia.php
Redirect 301 /pennsylvania.html /pennsylvania.php
Redirect 301 /victorian_jewelry.html /victorian-jewelry.php
Redirect 301 /art-nouveau-beauty-of-nature.html /art-nouveau-beauty-of-nature.php
Redirect 301 /edwardian-style-hail-to-the-king.html /edwardian-style-hail-to-the-king.php
Redirect 301 /faberge-a-life-of-its-own.html /faberge-a-life-of-its-own.php
index-static.html
index.php
0
Hello experts
Today i let my desktop install the latest updates and after that the apache server does not start.
I read about the port issues with skype and i uninstalled the app but the problem remains.
Any help to solve my problem?

software information:
Windows 10
Apache 2.4
error code 1

Thank you
0
Is there a way for me to change the path to my httpd.conf file besides starting the server with the -f?

Thanks,
David
0
Hello everyone!.

I am trying to configure my apache server so only some locations have authentication. Currently I have this:

<VirtualHost *:443>
    Header set Access-Control-Allow-Origin "*"
    ServerName mydomain
    DocumentRoot /var/www/ws
    <Directory /var/www/ws/>
        AllowOverride All
        Allow from all
        Options all
        Require all granted
    </Directory>
    <Location "/">
        AuthType Basic
        require valid-user
        AuthUserFile /var/www/.htpasswd
        AuthName "Authorization Required"
        satisfy any
        deny from all
        allow from 192.168.10
        allow from 172.16.10
    </Location>
    SSLEngine on
    SSLCertificateFile /etc/ssl/certs/apache.crt
    SSLCertificateKeyFile /etc/ssl/certs/apache.key
    SSLCertificateChainFile /etc/ssl/certs/apache.crt
    LogLevel debug
    ErrorLog /var/www/ws/logs/error.log
    TransferLog /var/www/ws/logs/access.log
    php_value include_path .:/usr/share/pear:/var/www/ws
    Alias /ws /var/www/ws
</VirtualHost>

Open in new window


However every locations  needs authentication. I want something like this:

<VirtualHost *:443>
    Header set Access-Control-Allow-Origin "*"
    ServerName mydomain
    DocumentRoot /var/www/ws
    <Directory /var/www/ws/>
        AllowOverride All
        Allow from all
        Options all
        Require all granted
    </Directory>
    <Location "/">
        AuthType Basic
        require valid-user
        AuthUserFile /var/www/.htpasswd
        AuthName "Authorization Required"
        satisfy any
        deny from all
        allow from 192.168.10
        allow from 172.16.10
    </Location>
    <Location "/services/location1/*">
        satisfy any
        Allow From All
    </Location>
    <Location "/services/location2/*">
        satisfy any
        Allow From All
    </Location>
    SSLEngine on
    SSLCertificateFile /etc/ssl/certs/apache.crt
    SSLCertificateKeyFile /etc/ssl/certs/apache.key
    SSLCertificateChainFile /etc/ssl/certs/apache.crt
    LogLevel debug
    ErrorLog /var/www/ws/logs/error.log
    TransferLog /var/www/ws/logs/access.log
    php_value include_path .:/usr/share/pear:/var/www/ws
    Alias /ws /var/www/ws
</VirtualHost>

Open in new window



Any ideas?. Is it possible to do this using .htaccess?
0
I am running a LAMP stack. I have the domain example.com registered. I created an Apache virtual site with ServerName example.com and ServerAlias www.example.com.

I did not create any subdomains on the Godaddy website. I was under the impression I just needed to create another Apache virtual host.

I created a new host that pointed to a new directory. The ServerName was forums.example.com and the server alias was www.forums.example.com.

I enabled the site and reloaded Apache and when I try to visit forums.example.com I get a DNS error.

Does the answer lay in my Apache configuration file, or in subdomain settings from Godady?
0
I have a virtual Debian web server running apache 2.2.22 with an ssl enabled vhost.  I am trying to disable SSLv3 and no matter what I do there seems to be no change when I rescan the website with Comodo or SSL labs.  I have tried editing:

/etc/apache2/mods-available/ssl.conf
/etc/apache2/sites-available/default-ssl

... by either adding or changing the existing parameters for:

SSLCipherSuite
SSLHonorCipherOrder on
SSLProtocol all -SSLv3 -SSLv2

And after every change I run service apache2 restart

I also grep'd the /etc/apache2 directory for those ssl variables thinking they were coming from somewhere else but they are not.

Ultimately I am trying to switch the site over to TLS and dump SSLv3 but I just can't make an impact...
0
I had this question after viewing apache with rotatelogs not working  : error while loading shared libraries: libaprutil-0.so.0.

I too got similar issue like   HTTP_Server~1.log   shows error  when opmn / http started .
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
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
After moving the php application on another server, I find that a lot of php coding cannot run. Attached is a simple test. Any idea ?
C--temp-Test1.png
C--temp-Test2.txt
0
HTTP server being bounced  by opmn as its ping is failing almost  every 35 mins   and  restarting the HTTP service . Not clear why opmn is failing to ping HTTP service.
    -   At the time of bounce I see around 190+  persistent connections in  CLOSE_WAIT mode . This is my observation and not sure if this is by any chance contributing to the issue .  How to identify and  fix this ?
0
Hi,

We have apache with following directory structure:

/html/a.htm
/html/b.htm
/html/c.jsp
/html/test/d.jsp
/html/test/e.jsp

We need to give user access only to some of these files.

How can we achieve the following with rewrites:

- User enters www.domain.com and gets redirected to /html/a.htm but sees url as www.domain.com/a.htm
- User enters www.domain.com/b.htm and gets redirected to /html/b.htm but sees url as www.domain.com/b.htm
- User enters www.domain.com/d.jsp and gets redirected to /html/test/d.jsp but sees url as www.domain.com/d.jsp
- User can also enter full urls to the files mentioned above and get access to them
- User gets a Gone page if he enters www.domain.com/c.jsp, www.domain.com/e.jsp or corresponding full urls.

Please advise.

Thanks!
0
I'm trying to access my localhost or server name running apache, but I keep getting this message. Access forbidden.
You don't have permission to access the requested directory. There is either no index document or the directory is read-protected.
The apache log file says this, client denied by server configuratoin.
I've tried granteding/allowing access in the httpd-xmapp-conf and the httpd.conf file.
I find it strange that I can access the phpmyadmin via http or https. I've tried disabling SSL, but I'm still getting the error.
0
I have below line in haproxy.cfg

server batch lb1.com:8080 weight 100 maxconn 150 check inter 1000 rise 10 fall 3 disabled

Open in new window


I would like to understand the role of 'disabled' here
0
I have below log from HA Proxy
Nov 17 09:16:41 lb1 haproxy[13135]: 10.2.148.1:40862 [17/Nov/2017:09:16:38.094] lb batch1 0/0/0/-1/3000 504 194 - - sH-- 2509/2509/2503/101/0 0/0 "GET /my_url HTTP/1.1"

Open in new window


Here I would to understand what is -1 in  "0/0/0/-1/3000"
and
what is these numbers separated with "/". I see two instances of it in the log above
0
I have below log from HA Proxy

Nov 17 09:15:41 lb1_server haproxy[14520]: 10.22.148.53:2102 [17/Nov/2017:09:15:40.191] lb in/batch31 0/0/0/1472/1473 503 5569 - - ---- 2106/2106/2098/79/0 0/0 "GET /my_url HTTP/1.1"

Open in new window


Here I would like to understand what is

 0/0/0/1472/1473 

Open in new window


and also using above log can I see how many requested were 'queued' as backend was not available ?
0
Parse error: syntax error, unexpected T_CONST in C:\wamp\www\codeigniter\system\core\CodeIgniter.php on line 58
0
Hello, so I'm trying to mirror some website from my LAMP server to my Windows 10 PC.
I am using WAMP server to do this but I have huge problems with permissions.

Apache can't seem to write stuff anywhere. The service runs as local system and the SYSTEM user has full control. I also tried giving EVERYONE full control, it still doesn't work. I keep getting errors like this:

Warning: error_log(../xxxxxxxxxxx/00000b015e503ae39081e38d06f1652e822b20171116.log): failed to open stream: Permission denied in B:\Siti\xxxxxxxxx\xxx.php on line 708

Open in new window


I also tried running Apache as a local administrator, still no go.

There must be a way to make this work. I have a CentOS vm on and I could use that, but it would be handier for me to go full local.
Also, I can't stand things not working.
0

Apache Web Server

19K

Solutions

15K

Contributors

The Apache HTTP Server is a secure, efficient and extensible server that provides HTTP services in sync with the current HTTP standards. Typically Apache is run on a Unix-like operating system, but it is available for a wide variety of operating systems, including Linux, Novell NetWare, Mac OS-X and Windows. Released under the Apache License, Apache is open-source software.