trying to find a working solution for setting up a subdomain for my Apache server.
Here is my setting:
(1) I have two virtual hosts defined in httpd-vhosts.conf: domain1.com and domain2.com. Included NameVirtualHost *:80 both into httpd-vhosts.conf and httpd.conf.
4) Here the problem comes. When I enter sub.domain2.com into browser, it shows domain1.com content.
(5) Based on some suggestions, I removed asterisks from ServerAlias lines. This made the subdomain working, but messed up the other two servers, which became unavailable or broken down.
When I type mail.mydomain.com into any browser it resolves to the first virtual host that my apache has even though there aren't any document roots defined for mail.mydomain.com. Apache itself works fine, mail server itself works fine as well. I thought that since mail.mydomain.com has an A record but does not have any document roots specified for that Apache simply takes the first virtual host it has on its list and shows it up online as mail.my domain.com. Is that not right? Is there perhaps any misconfiguration somewhere?
I tried deleting virtual hosts one by one and this test simply confirmed that in order to "serve" mail.mydomain.com Apache takes the first virtual host it has on the list. Then I created a document root for mail.mydomain.com and now it shows some test content I specified but my issue / question remains.. Does it mean that I have to create document root stuff for every single A record I have? For example I have an A record for mail. mydomain. com which works as a mail server but for some reason it also resolves as a simple web page?
The problem in short is that when I type mail.mydomain.com into a browser it shows the content from subdomain.mydomain.com. The relation to mail is not webmail, it's just a regular standard mail server. The question / goal is to find out whether it is supposed to be like that? If it is then I will have to create some content to be shown when someone types mail.mydomain.com
I'm using the following vhost script: URL...This used to work on an older version of apache in Windows. Now I'm running Apache 2.4.6 on Ubuntu 12.04.
When I type in, for example, dhae.papertower.dev, it processes some scripts internally and moves me to www.dhae.papertower.dev.. and breaks. When I check my log, I find that it's trying to go to the /var/www/papertower/www directory.
I tried adding www.*.papertower.dev to the ServerAlias, but that didn't do it.
I'm currently trying to configure apache 2 to handle subdomains. This is on a local machine (not tied to any domain names) and I'm only doing it to research how the final structure of a site 'could' be setup.
Basically I have a single install of Apache 2 running. The outcome eventually should be to have specific sub domains that all point to the same document root as the actual domain name. So eventually I will have:
Now on my local machine, only the top one works - the subdomains dont. if I add the following into my hosts file in windows, they all work: 127.0.0.1 daneastley 127.0.0.1 subdomain1.daneastley 127.0.0.1 subdomain2.daneastley
the problem being, that I wish to test this enviroment on the local network. How would I go about having every computer being able to access this? I'm assuming it comes down to DNS stuff.
I want to make it an internal rewrite though, not an external redirect. If I remove the [R=303] I still end up with a redirect (a 302). I assume mod_rewrite is forcing an external redirect because it's to a different [sub]domain.
Is there any way I can overcome this and make the change internal?
Since a week ago or so, in one of our Plesk 12.0.18 / Centos 6.6 servers, when we create subdomains the process seems to stop half-way without being finished.
To reproduce the error:
Select a subscription (e.g. example.com) and go to "Domains and subdomains" Select "add new subdomain" and enter a value (e.g. new.example.com). The directory will live in parallel to httpdocs Click Accept
Expected result:
The subdomain should be created: Filesystem diirectory with default contents, DNS entry, Apache VirtualHost, etc.
Actual result:
After several minutes Plesk responds with Internal Errror (in a red area in the panel).
Things done right:
The file space in parallels with httpdocs is created fine with the default site. DNS entries are created under /var/named/chroot infrastructure. The subdomain menu appears fine in the Plesk panel.
Things wrong/missing:
The filesystem directory is not mapped by Apache. Even after changing its contents the default server templeate appears in the browser, (all precautions taken, apache restart, browser in private session and different browsers).
- /var/log/httpd/access_log records the access with 200 OK codes although I don't find them in neither subscription logs under /var/www/vhost/system/*/logs/access_log nnn.nnn.nnn.nnn - - [27/May/2015:18:38:35 +0200] "GET <deleted_content_in_the_subdomain_directory> HTTP/1.1" 200 14036 "http://<new_subdomain>" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:34.0) Gecko/20100101 Firefox/34.0
I don't find the Apache VirtualHost .conf files for subdomains, where can I look for them up...
I just picked up a WiredTree VPS account, but have never really dabbled deep into server-related knowledge. I was wondering what one would do to rid of the "Great Success!
Apache is working on your cPanel® and WHM™ Server" pages when subdomains are accessed?
I've just downloaded Microsoft Virtual PC and the Internet Explorer 6 Application Compatibility VPC Image containing an XP installation for testing sites with IE6 [url].
Everything works fine, I chose VPC Shared Networking (NAT) and I can access the internet from the VPC as well as my Apache development server which runs on the host OS (Win XP) by going to the host's IP address which is [url] in my case. And here I have 2 problems:
1. I want to access [url]on VPC just by typing [url]. I added the following line to the hosts file:
192.168.52.141 localhost
But this doesn't work. Interestingly, any name other than localhost works fine, for example:
192.168.52.141 localhost.localhost or 192.168.52.141 local
This is not a major problem but I'd prefer localhost. Any ideas how to do that?
2. And the more important issue: on my host OS I have some development sites which I have set up to be accessed by subdomains, for example [url], in httpd.conf:
Code: <VirtualHost 127.0.0.3> ServerName perfekt.localhost DocumentRoot C:wwwperfekt DirectoryIndex index.php index.html </VirtualHost> and in hosts file:
Code: 127.0.0.3 perfekt perfekt.localhost And now I want to access this site from my VPC too by using subdomains like this! How can I do that? The address 127.0.0.3 seems to be local to the OS and VPC can't see it. I have tried setting other IP addesses in httpd.conf but nothing outside the 127.x.x.x range works on either OS. I suppose I need to make each of my sites to be seen under a different IP from the outside network so that VPC (which is "outside" the host OS) can access them - then I just set up the appropriate subdomain names in VPC hosts file -
I am trying to set up domains and subdomains, on my webserver, however the domains are resolving, but when accessing a subdomain I get a 500 internal server error, permissions on files are the same on both domain and sub domain level.
My virtual host files looks like this for domains and for the subdomains, and I am using Apache 2.4.7, on an ubuntu 14.04 running on a rackspace cloud server.
I've set up the affiliate manager from jrox.com for a client of mine. This includes the setup of wildcard DNS so that each affiliate can have username.clientssite.com and have it count their clicks - which works properly.
What isn't working properly is that he also has forums.hissite.com, which is loading the main website page instead of his forums. He is using cpanel to add the subdomain, and it isn't failing, so I'm not sure what's going on with it.
User residual Group residual CustomLog /usr/local/apache/domlogs/forums.residualvictory.com combined ScriptAlias /cgi-bin/ /home/residual/public_html/forums/cgi-bin/ </VirtualHost>
And the bind file for his domain
Quote:
; Modified by Web Host Manager ; Zone File for residualvictory.com $TTL 14400 @ 86400 IN SOA ns1.lucidic.com. root.lucid.lucidic.com. ( 2007050705 86400 7200 3600000 86400 )
residualvictory.com. 86400 IN NS ns1.lucidic.com. residualvictory.com. 86400 IN NS ns2.lucidic.com.
residualvictory.com. 14400 IN A 74.53.106.146
localhost.residualvictory.com. 14400 IN A 127.0.0.1
residualvictory.com. 14400 IN MX 0 residualvictory.com.
mail 14400 IN CNAME residualvictory.com. www 14400 IN CNAME residualvictory.com. ftp 14400 IN A 74.53.106.146 forums 14400 IN A 74.53.106.146 www.forums 14400 IN A 74.53.106.146 * 14400 IN A 74.53.106.146
I added the following to my cpanel .htaccess file on my hosting account:
<FilesMatch ".pdf$">header set x-robots-tag: noindex </FilesMatch>
This was to stop Google from crawling and indexing my PDFs, will this work accross all my addon domains and subdomains (which are wordpress) on my hosting account or do I need to take extra measure?
I'm setting up a Linux machine specifically for use as a VNC here at work.
The IT Manager said he'd used Ubuntu before but left the distro up to me.
I set up my test machine with Ubuntu but need to compile Apache for portions of it to work. I've never had any problems building Apache before, but this is what I'm getting here. I have a feeling that, since I've not used Ubuntu before, that I'm just missing a step. I also noticed that the "make" command doesn't work. Does that need to be installed and compiled as well?
========================================= root@vnc01:/etc/httpd-2.2.3# ./configure /usr/local/apache configure: WARNING: you should use --build, --host, --target configure: WARNING: invalid host type: /usr/local/apache checking for chosen layout... Apache checking for working mkdir -p... yes checking build system type... /usr/local/apache checking host system type... /usr/local/apache checking target system type... /usr/local/apache
Configuring Apache Portable Runtime library ...
checking for APR... reconfig configuring package in srclib/apr now configure: WARNING: you should use --build, --host, --target configure: WARNING: invalid host type: /usr/local/apache checking build system type... /usr/local/apache checking host system type... /usr/local/apache checking target system type... /usr/local/apache Configuring APR library Platform: /usr/local/apache checking for working mkdir -p... yes APR Version: 1.2.7 checking for chosen layout... apr checking for /usr/local/apache-gcc... no checking for gcc... no checking for /usr/local/apache-cc... no checking for cc... no checking for cc... no checking for /usr/local/apache-cl... no checking for cl... no configure: error: no acceptable C compiler found in $PATH See `config.log' for more details. configure failed for srclib/apr root@vnc01:/etc/httpd-2.2.3#
The config.log file doesn't honestly show any errors that I can see pertaining to any compile errors.
i signed up for vps from vps.me and i got ssh credential i logged in ssh using token2shell but when i put my server ip "10.223.1.157" in google chorome but then it says unable to find even i am not able to access ftp through filezilla also
I'm trying to get exception from auth (.htpasswd ) for one specific URL, but seems, that it does not work with my Rewriting rules. Disabling RewriteEngine solving auth problem. My .htaccess:
I have been using Apache 2.2.23 VC9 ssl 0.98 on my windows 7 32 bit PC. I decided to remove the 2.2.23 release and install 2.4.3 VC9 version yesterday. After installation, I was able to run Apache by running httpd.exe from command line. I can also install Apache service using "httpd -k install" with no problem. However, when I tried to start Apache service using "httpd -k start", it didn't work for me. Starting Apache from apachemonitor also failed. I checked error.log and found the following output:
Starting the Apache2.4 service [Mon Feb 18 19:00:33.498207 2013] [mpm_winnt:crit] [pid 7564:tid 376] (OS 1053)The service did not respond to the start or control request in a timely fashion. : AH00378: Apache2.4: Failed to start the service process.
I have a little problem (on my Raspberry) with the maximum concurrent connections.When I open multiple tabs of a webpage which keeps persistent connections, apache is unable to serve more requests.Here is the (shortened) mod_info output (which also takes some time till there is a process kind enough to serve the request):
Code: Server Version: Apache/2.4.10 (Raspbian) OpenSSL/1.0.1k Server MPM: prefork 5 requests currently being processed, 9 idle workers
I installed Apache2. In the the folder "var/www/html" I created a symlink to a different HDD that holds a number of movie files. My thinking is that it would be easy to access the movies through a browser from any computer on my local network.
I used the following command string while in the html directory, and created the symlink:
ln -sd /media/guy/movie1/Movies test
While sitting at the server, when I click on "test" it opens the correct directory and exposes the files. If I surf to apache from another machine it does not show the symlink.
Here the permissions on the symlink
lrwxrwxrwx 1 root root 24 May 11 19:56 test -> /media/guy/movie1/Movies
We have three virtual hosts on our Apache 2.2 installation on Windows Server 2003. For some reason, I'm unable to open log files (error.log and each virtual hosts-specific log), even though I have full administrator rights. (The log folder is full access to admins.) Every time I try to open the file or even copy it to another location, it just says "Access Denied." I temporarily solved the issue for one of the logs by adding BufferedLogs On
After downloading httpd-2.2.29-win32.zip and generating SHA1 and SHA256 checksums from the file, they do not match the checksums posted on the download page.
A newby to web hosting, I get a lot of "script not found or unable to stat:" errors. Should I be concerned? The web site seems to be working fine. The entire error message looks like this: script not found or unable to stat: /home/coin99/public_html/cgi-bin/cq/undefined, referer: URL...
The public_html/cgi-bin/cq/ directory contains the main Perl script for my site. It is called 'coins' (no extension). There is no file or directory called 'undefined.' The referer is a page on my site.
Sometimes when I try to restart Apache 2.4 using the supplied ApacheMonitor.exe I get this error. Then, I have to "taskkill /f /im httpd.exe" or wait like 30 sec before trying to start Apache again.
Installed Apache Server 2.4.3 (no PHP, etc.) and it was working beautifully for a week or so. Yesterday, I restarted my laptop (nothing changed... no updates that install automatically, etc.) and now Apache won't start. Here are some things I've found out on my quest on figuring out what's wrong:
1. Apache Error Log: [Sat Jan 05 14:18:36.745977 2013] [mpm_winnt:notice] [pid 4116:tid 372] AH00455: Apache/2.4.3 (Win64) configured -- resuming normal operations [Sat Jan 05 14:18:36.745977 2013] [mpm_winnt:notice] [pid 4116:tid 372] AH00456: Server built: Aug 18 2012 14:13:48 [Sat Jan 05 14:18:36.745977 2013] [core:notice] [pid 4116:tid 372] AH00094: Command line: 'C:Apache24inhttpd.exe -d C:/Apache24' [Sat Jan 05 14:18:36.747979 2013] [mpm_winnt:notice] [pid 4116:tid 372] AH00418: Parent: Created child process 3436 [Sat Jan 05 14:18:37.335418 2013] [mpm_winnt:crit] [pid 4116:tid 372] AH00419: master_main: create child process failed. Exiting.
2. Nothing else is using port 80 (or 443, for that matter).
3. Apache will start and stay running if I run httpd.exe from the DOS prompt or double-click it from within Windows just fine.
4. Will not run when launched from within the Services or Apache Service Monitor app.
5. Windows Event Error displays the following error: Faulting application name: httpd.exe, version: 2.4.3.0, time stamp: 0x502f863e Faulting module name: MSVCR100.dll, version: 10.0.40219.325, time stamp: 0x4df2bcac Exception code: 0xc0000417 Fault offset: 0x0000000000070468 Faulting process id: 0x13d8 Faulting application start time: 0x01cdeb8eefaec475 Faulting application path: C:Apache24inhttpd.exe Faulting module path: C:WindowsSYSTEM32MSVCR100.dll Report Id: 2deab70b-5782-11e2-be94-00247e17b5d9 Faulting package full name: Faulting package-relative application ID:
6. I've tried fixing/reinstalling the C+ redistribution files about 3 times now, to no avail (thinking the error in the event file was caused by a bad/corrupt MSVCR100.DLL).
7. The exception code in the event error is: 0xc0000417 = STATUS_INVALID_CRUNTIME_PARAMETER = An invalid parameter was passed to a C runtime function. (But again, reloading the files didn't solve anything).
8. I have tried removing Apache completely, reloading with default settings, etc. and still having the same issue.
9. Out of desperation, I even tried a registry cleaner (CCClean) and CHKDSK on the drive. Both of those didn't fix anything.
This is it... not sure what else to do/try. Again, everything was fine one moment, and it all stopped working after rebooting my system. I've wasted hours into this issue, and have come up empty handed. I'm beyond frustrated at the moment.
EDIT: The download I used for the server is located here: [URL]...