Apache :: Httpd -S Show Two Source Of A Site When Its Config In One
Jan 31, 2014
When i do httpd -S i notice one of my sites show with 2 config source. but i just config one file for the site.
for example:
[root@apachesrv ~]# httpd -S | grep devel.site.com
default server devel.site.com (/etc/httpd/sites/000-default.site.com:1)
port 80 namevhost devel.site.com (/etc/httpd/sites/000-default.site.com:1)
port 80 namevhost devel.site.com (/etc/httpd/sites/devel.site.com:1)
the problem is the following, when i do reload and in this moment the config is bind this result, the site is blank.
Why it shows me this.
version of apache
Server version: Apache/2.2.15 (Unix)
View 1 Replies
ADVERTISEMENT
Oct 29, 2008
I am trying to do something that I believe is fairly non-standard. What I am looking to do is create a system where I can rapidly deploy web sites without having to restart named and Apache. For example, if a customer completes a process, I want to be able to turn that site on immediately using a temporary domain (somecompany.example.com or othercompany.example.com).
With some programming language (hopefully PHP) I would like to get the customer up and running with their site immediately without having to restart the server. While doing some research I found I could use MyDNS which uses MySQL to manage DNS data instead of configuration files. MyDNS can be updated on the fly.
For Apache I have seen wildcard configurations, but everyone seems to be suggesting the use of mod rewrite. I would prefer that the domain maps directly to a specific folder:
somecompany.example.com -> /sites/somecompany/htdocs
(*.example.com -> /sites/*/htdocs)
Does anyone know how I might do this with Apache. It seems similar to user directories (example.com/~username -> /home/*/htdocs)
View 4 Replies
View Related
Mar 4, 2008
if MRGT graph to mesure BW can be config to show faulty results? like 20% more than what i am actualy using?
The reason i am wondering is because i have a server which is an image hosting and running lighttpd as webserver. The only thing consumming BW now is lighttpd for images.
While the status page of lighty show i am using about 4.2Mbytes ~ 32-34mbits then the BW graph of data center show that i am using something like close to 52mbits.
Please see the pictures below and let me know what you guys think.
The BW graph here is Past 4 Hours (1 minute average)
and lighty screenshot is real time.
View 4 Replies
View Related
Dec 6, 2008
I just installed DirectAdmin with Apache 2.2 on CentOS 5.2 and whenever I manually restart httpd, it doesn't show if it started the service or not.
Code:
[root@server ~]# service httpd restart
Stopping httpd: [ OK ]
Starting httpd:
[root@server ~]# service httpd status
httpd (pid 17586 17585 17584 17583 17579 17555) is running...
It's running but it doesn't show the OK..
Is this bad? I'd like to fix it before I start moving my files over so I don't mind if I have to reimage it.
View 6 Replies
View Related
Feb 7, 2008
httpd.config changed since my server was hacked but they can not control it , they just delete db from mysq and they can not bypass direcoty
i upgrade to 2.2.8 apache
i make full security
but still i get strange problem that i found the httpd.config changed to make the .ht work by override option
i make this:
<Directory "/">
Options all
AllowOverride none
</Directory>
but after day i get it changed to be:
<Directory "/">
Options all
AllowOverride all
</Directory>
i installed mod_security and after a day i get the httpd.config was changed to make mod_secrity not work and also to make :allowoverride all!
i think there is way for attacker to alter httpd.config
i made a lot of security :
1.disable aldot of php function including decode_64base
2.insttal apf
3.mod_security with good rules
4.chmod httpd.config with 600 and i get it changed after a day and i made it 700
to prevent any change occured in httpd.config?
View 7 Replies
View Related
Nov 6, 2009
I own a few domains without websites; is it a good idea to show ads on them; do people actually earn anything by displaying ads on empty domains; my current hosting plan doesn't have quota for additional domains so how do I do that without buying a hosting.
View 9 Replies
View Related
Jan 4, 2009
I 'm new user of LSN Dedicated server.
I have instal image sharing web and run well. But when i install my drupal site, my DS give me some error with that CMS.
1. First time, when i'v tried to open it, but browser always ask me to download it.
2. And then i've tried to change .htaccess and remove about addhandler, i can load my web. But not well. The page displayed just cache page. if i tried other page, just blank displayed no html or php tag displayed at source.
config my server? I think there is something wrong with my apache and/or PHP configuration.
View 0 Replies
View Related
Jun 25, 2009
The data centre which I use, is moving all collacated servers to a brand new data centre next week, which will mean a two hour downtime for each of my servers and customer websites.
At the moment my servers utilise two nameservers on seperate servers and when the move happens all websites will be offline with an ugly error message to any visitors.
Does anyone know a good way to setup a page which would be displayed if the web server was down? I am using MS DNS.
My thoughts so far is
1. Setup a 3rd nameserver which is off site from the data centre.
2. Purcahse web hosting / vps for a month on a seperate hosting company
3. Set it up so that it accepts * to a specific IP address in IIS or apache
4. I create an index.php script which gets the host header value sent i.e. [url]and the page then displays a nice maintenace i.e
"We are sorry joeblogs.com is currently down for maintenace, we will be back online shortly".
I think my main question is do I need to setup a 2nd www record in DNS for each site and how do I ensure the 2nd dns (backup record) only gets used when the first website / server is down.
View 0 Replies
View Related
Feb 12, 2007
i have dedicated server
one site on my server compress to my server
cpu and memory
how i can config that the site use of memory only 2% and ...
View 7 Replies
View Related
Jul 31, 2008
Can anyone with previous exp. in Video Hosting/Streaming provide me some info on THE CONFIG AND BANDWIDTH REQUIREMENTS FOR ffmpeg hosting for youtube like site?
Here are the basic things-to-know & Server(s) Funtions:
1. Do Video Conversions from AVI, MKV, etc to FLV/MP4
2. Stream out these videos for viewers.
3. Expected Traffic: Quite High (1 Million Visitors/mo)
So can anyone suggest me the most suitable Server Config, Bandwidth (I'd prefer dedicated-unmetered b.w) and Host for this?
Also can anyone provide me info on the amount of video conversions and traffic a single server (with your recommended config) can handle?
View 6 Replies
View Related
Apr 4, 2009
I run a heavy site, and httpd always failing...
I have a server with these specs:
Q6600
8GB RAM
500 GB SATA HD
Cpanel/WHM
I run a filehosting site actually and there are alot of people downloading at the same time which i think the server goes down and then httpd restarts itself and all the people downloading the files, their files get currupted.
How can i make it so it stays stable?
View 12 Replies
View Related
Oct 22, 2009
I can access FTP, SSH and httpd is showed as running when i check with 'httpd status'. Memory ram has half of them left(except that swap is 0,0).
I can't access my site via browser
Why tried restarting
[root@web2 ~]# service httpd start
Starting httpd: (98)Address already in use: make_sock: could not bind to address [::]:80
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
[FAILED]
[root@web2 ~]#
View 11 Replies
View Related
Oct 6, 2007
ive just upgraded to Apache 2.2.6 today and ive found a problem. Im trying a new way of doing mass virtual hosting using mod macro.
<Macro vhost $domain $path>
<VirtualHost *>
VirtualDocumentRoot "$path/Web/"
ServerName $domain.spkweb.com
ErrorDocument 404 "drive:/folder/404.php"
php_admin_value open_basedir "$path/Web/;$path/Temp/"
php_admin_value upload_tmp_dir "$path/Temp/"
<Directory "$path/Web/">
Options FollowSymLinks
AllowOverride all
Allow from all
</Directory>
</VirtualHost>
</Macro>
Use vhost DJSmithy "drive:/Hosting/DJSmithy"
Mostly it works fine but if there is a 404 then i get a 403 permission denied error instead of the error page. the folder that contains the error page does have a <directory> bit for it and i even tried adding it into the virtual host but i get the same result.
if the file does exist then it loads like normal
can anyone see any problems with my config or do i have to do something diff for 2.2.6?
View 2 Replies
View Related
Nov 9, 2007
I had to switch to Apache 2 from Lighttpd and I'm running into a little bit of trouble trying to make it handle all my traffic. I'm using the worker MPM module, which has the following default config:
Code:
<IfModule mpm_worker_module>
StartServers 2
MaxClients 150
MinSpareThreads 25
MaxSpareThreads 75
ThreadsPerChild 25
MaxRequestsPerChild 0
</IfModule>
I need Apache to be able to handle about 200-500 requests per second. I tried increasing ServerLimit and MaxClients but that didn't work very well.
View 1 Replies
View Related
Sep 27, 2007
I have kind of inherited this server from another person so I'm not totaly sure how it was set up. It is a:
red hat machine running
2.6.9-22.0.2.ELsmp kernel
running apache 2.0.52(red hat)
at any rate this server mainly serves up images but also a few video encoded in flash(.swf files). Basically the issue at hand is there are a few domain names that all point to this server but only one domain name will let the .swf files stream correctly. All other domain names will wait for the whole thing to download before playing. I'm pretty new to apache 2, but I do know apache 1 pretty well. I'm not totally sure where to start with all this. The server is set up with no virtual hosting for each domain which I think could a problem.
View 2 Replies
View Related
Nov 7, 2012
I have a WP online shop using WP E-commerce plugin 3.8.9 together with the SEO Yoast plugin.My problem in that when exploring the product URLs ending with / in google webmaster tools, it displays 404. But the same URL without / is found and ok. I must day that both URLs show up correctly in browsers and the non / version is redirected to the one ending in /.Here is my .htaccess:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
I could solve this problem by setting a redirect to non / URLs instead.
View 3 Replies
View Related
Feb 18, 2015
I have test server with > VMware CentOS + Plesk 12...And after reboot, plesk "localhost.localdomain" show me "Apache 2 default page"I do this > service httpd restart, and after all ok. (Show Plesk Default page) no apache page.I want normaly reboot server and show "Plesk default page" no apache...
View 4 Replies
View Related
Jul 22, 2009
how can i compile apache and php in a way that i want?
a customized compilation of php and apache?
will it be gone after plesk update?
or has plesk a module to work as easyapache in cpanel?
View 3 Replies
View Related
Apr 13, 2009
I used to have a dedicated server running Apache 1.x (1.3 I think) and in my httpd.conf there were entries about keepalives, maxservers, minservers etc.
I've now got a VPS from FutureHosting, which is brilliant. In my httpd.conf file though, there are none of the above entries. It is running the latest version of Apache (2.2.11).
Are all the keepalive / minservers settings handled automatically in 2.2 or do I just have a default setting and maybe need to add them manually?
I don't have any load issues so haven't touched the config so far.
View 5 Replies
View Related
May 20, 2008
i thought for moveing my apache 2.0 to 2.2 but iam in little bit confused for max client and keep alive setting in normal apache 2.0 we can see that in httpd.conf file but in apache 2.2 we can able to see that all,any one help me in finding these kind of setting and move my apache 2.2 without any issues
View 0 Replies
View Related
Jun 3, 2008
I have domains parked on a subdomain. Since i updated the apache configuration with cPanel the parked domains just show the default apache configuration. The domain shows up under parked domains. I can delete the domain and readd then it works. However, that isn't a good option cause there are 100+ domains.
View 6 Replies
View Related
Mar 8, 2015
I'm using .htaccess to show existing images instead of images which does not exist.
RewriteBase /images/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)_(.*)1200x900.jpg$ esittely_$21200x900.jpg
RewriteRule liiga1200x10.jpg esittely1200x10.jpg
RewriteRule liiga670x10.jpg esittely670x10.jpg [L]
Everyting works fine if an image does not exist.
But if an image does exist, the second RewriteRule
RewriteRule liiga1200x10.jpg esittely1200x10.jpg
will be used.
Why is that so? How could I modify my code to prevent that?
View 2 Replies
View Related
Apr 20, 2009
I run a Perl/CGI script from a Web page to download some files located in a Linux server. When I click from a Windows XP on the link of the file to download via this Web page (IE), a dialog box will be displayed to ask me to "Open" or "Save" the file (.txt, .doc, .xls,...) but for some extensions like ".dat" or ".asc", the dialog box ask me to save it only and I have not an "Open" button.
I tried to configure Apache to add these extensions as text/plain by adding these lines in http.conf:
AddType text/plain .asc .txt .dat
How can I add these extensions (.dat, .asc and other extensions) to Apache configuration to be able to open it with Textpad or Notepad?
I hope that the users will be able to open it with Notepad or TextPad without saving it. I know that we can add this type directly in the stations XP but I have a lot of users and I cannot manage that. I hope to perform it from the server. I think something is wrong or missing in my AddType, AddHandler or LoadModule?
View 5 Replies
View Related
Feb 24, 2015
c:Apache24bin>openssl.exe
WARNING: can't open config file: c:/openssl-1.0.1e-X64/ssl/openssl.cnf
OpenSSL>
View 1 Replies
View Related
Jan 26, 2015
I got this message now for the second time:
Template processing failed: file = /usr/local/psa/admin/conf/templates/default/domainWebmail.php, error = Template_Exception: No data. file: /usr/local/psa/admin/plib/Template/Processor.php line: 28 code: 0 Previous error: Template_Variable_Exception: No data. file: /usr/local/psa/admin/plib/Template/Variable/AbstractCachedData.php line: 67 code: 0.
How can this happen and how to solve this?
View 3 Replies
View Related
Jun 6, 2014
I have put up a WAMP server that is based on Apache2.4.4. I am trying to utilize the rotatelogs.exe to rotate my access log every night. I have this working on IBM HTTP installations. IBM's HTTP is based on Apache 2.2. why the CustomLog command is not working? The command under my Virtual Hosts that I am using is:
<VirtualHost *:80>
ServerName xxxxxxxx
DocumentRoot C:wampwww
[Code]....
View 1 Replies
View Related
Dec 11, 2013
I am trying to get a Apache (Win7x64) to run using totally custom config files, so far I have this:
Code : httpd.exe -f ......confapachehttpd.conf
Loads fine and here is my trivial config:
Code:
Listen 8082
ServerRoot webinapacheapache-2.4
ServerName fitrak.me
DocumentRoot webhomewebsites
Regardless of whether I make the DocumentRoot absolute or relative Apache still won't load index.html
500 Internal Server Error
Nothing coming up erroneous in the logs...WTF am I missing???
The port is not occupied...
View 2 Replies
View Related
May 26, 2009
How can I setup my control panel to update the Apache config file
View 4 Replies
View Related
Aug 3, 2008
I am trying to restart my apache since i made changes to my php.ini file.
I tried using this command /etc/init.d/httpd restart which didnt work for me..any ideas guys? Its a basic dedicated server from a hosting company..
View 10 Replies
View Related
Mar 6, 2008
I recently updated to apache 2.2 and when I went to check
/usr/local/apache/conf/httpd.conf
I noticed that a lot of the stuff was missing from what I usually see in apache 1.3 Was a new file created when the update was finish? I used easyapache to make the update.
I was actually looking to change the
Keepalive
Timeout
MinSpareServers
MaxSpareServers
MaxRequestsPerChild
Etc...
But it doesn't look like it's in there.
View 2 Replies
View Related