access local apache server with imaginary domain

I actually don't know many things about server-side things (other than some PHP), but I'm trying to get familiar with it, so here's the problem:I just downloaded Apache HTTP Server and it works like a charm. I even tried it on local network and it still does work, but when I need to access files, I need to type local ip address like "192.168.1.33", but I need to access it by domain name that doesn't exist on web. The whole network is isolated and it is not connected to internet. Is there any way to do so?For example, would it be possible to access my server with domain like...

Tomcat hosting multiple virtual host with multiple SSL certificate

I have a server hosting multiple websites using Tomcat 7, for example a.abc.comb.abc.comc.def.comd.def.comUsing tomcat's virtual hosting feature, so they each may belong to different webapps folder.We're now trying to implement Https to each of the sites. So basically we got 2 wildcard certificates, *.abc.com, and *.def.comI've been looking for the ways to setup and I found:This where it taught me how to setup SSL with tomcatThis where it taught me how to setup multiple Host with different SSL pointing at different IP addressSecond example is closest to what I need but the ...

Correct Apache AddType directives for font MIME types

I’m using @font-face for embedded fonts (thanks Paul Irish). In trying to fix Chrome’s warning about wrong MIME type for woff fonts, I’ve discovered a mass of conflicting suggestions.Everyone seems to agree that .eot fonts (for IE 6-8?) should be served usingAddType application/vnd.ms-fontobject .eotFor .ttf fonts (older non-IE browsers?) I’ve seenAddType application/x-font-ttf .ttfAddType application/octet-stream .ttfAddType font/truetype .ttfAddType font/ttf .ttfAnd for .woff fonts (the new standard?) I’ve seenAddType appli...

htaccess redirect domain and mask url

I want to redirect a domain name : http://www.newdomain.com to http://sub.maindomain.comI have edited .htaccess as:RewriteEngine OnRewriteBase /RewriteCond %{HTTP_HOST} !sub.maindomain.com$ [NC]RewriteRule ^(.*)$ http://sub.maindomain.com/$1 [L,R=301] It redirects but the http://sub.maindomain.com visible in the address bar . Help! How to do the masking so that http://www.newdomain.com would be visible . ThanksAnd also I want create a subsite http://sub.newdomain.com . How to do it with .htaccess . If www.newdomain.com and sub.maindomain.com are on different hosts, the o...

Multiple subdomains to same address

I want to redirect multiple subdomain to same address. Let's say I want www.sitename.com and sitename.com to redirect same address.Do I have to say;<VirtualHost www.sitename.com:81> . . .</VirtualHost><VirtualHost sitename.com:81> . . .</VirtualHost>or is there a simple solution. Yes, If you wish to use multiple addresses like subdomains to the same location you can do this.<VirtualHost *:81> ServerName example.com ServerAlias www.example.com sub1.example.com sub2.example.com DocumentRoot /var/www/example.com ...

Seafile installation - {"detail":"Authentication credentials were not provided."}

I am currently trying to re-install seafile on my own server Ubuntu 14.04 with Apache 2.4+ and Let's Encrypt with CertBot for SSL certificates.I did a fresh installation of seafile following server manual:Deploying with MySQLDeploying with ApacheEnabling Https with ApacheWhich lead me to this virtual host configuration:<VirtualHost *:80>ServerName file.lecnet.frDocumentRoot /var/wwwRewriteEngine onRewriteRule / https://file.lecnet.fr/RewriteCond %{SERVER_NAME} =file.lecnet.frRewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]</VirtualHost><...

Doesn't show domain name on browser

I am having issue on my Apache web server.I am doing URL forwarding at domain controller control panel. Say our client typing the domain example.com and it will redirect to 123.456.789.10/www (my webserver fix IP address). Our client browser will then shows 123.456.789.10/www on their browser instead of showing example.com. Is this anything to do to my Apache setting or how to go about it? It looks weird to show my client the IP address instead of the domain name. You should set an A record in your DNS registration to point the root domain name (@) to your IP address.(an...

Can we append DH parameter to certificate file in apache 2.2.29?

I appended DH parameter to certificate file to use custome 2048 bit DH parameter and restarted HTTPD service, but it is not taking the DH parameter from the certificate in apache version 2.2.29.current cipher-suite orderSSLCipherSuite EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:ECDHE-RSA-AES128-SHA:DHE-RSA-AES128-GCM-SHA256:AES256+EDH:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-AES128-SHA256:DHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA:ECDHE-RSA-DES-CBC...

how to create multiple domains for image files in a website?

I read in an article that in order to maximize parallel download from a webserver, we can group our image files in separate domains. Now if I have a website with domain name www.example.com/ as my root directory and all my images are all stored inside www.example.com/pictures directory, what should i do differently in terms of storing my image files to have separate domains for my them? do i just make a bunch of new folder 1,2,3,.. instead and split my image files across those folder or what? thanks. You don't need to do anything with how you store your files. You just ...

Install SSL Certificate - Google Compute Engine VM

I am trying to install my SSL Certificate Issued by GoDaddy to my Google Compute Engine VM.(Debian8, Apache Server)But I am getting the following Error: ERROR: (gcloud.compute.ssl-certificates.create) Some requests did not succeed: - Invalid value for field 'resource.name': 'SSL_CERTIFICATE'. Must be a match of regex '(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?)'The Steps I followed were(on my local machine):mkdir ssl_certcd ssl_certopenssl genrsa -out example.key 2048openssl req -new -key example.key -out example.csrRef Link: https://cloud.google.com/compute/docs/load-balancing/h...

Web site migration and differences in firebug time profiles

I have a php web site under apache (at enginehosting.com). I rewrote it in asp.net MVC and installed it at discountasp.net. I am comparing response times with firebug.Here is the old time profile:Here is the new one:Basically, I get longer response times with the new site (not obvious on the pictures I posted here but in average yes with sometimes a big difference like 2s for the old site and 9s for the new one) and images appear more progressively (as opposed to almost instantly with the old site). Moreover, the time profile is completely different. As you can see on the s...

SSL on Apache HTTP Server

I have 2 crt files for Apache server:1_root_bundle.crt 2_my_domain_name.com.crtAnd other bundle:1_Intermediate.crt2_my_domain_name.com.crtroot.crtI have modified/etc/apache2/sites-available/default-ssl.conf And tried various combinations of above mentioned files but after Apache2 service restart SSL does not work, browser shows "Connection is not secure":SSLEngine onSSLCertificateFile /etc/apache2/ssl/1_Intermediate.crtSSLCertificateKeyFile /etc/apache2/ssl/2_my_domain_name.com.crtSSLCertificateChainFile /etc/apache2/ssl/root.crtHow to make SSL on Apache server? ...

DNS record with different ports

I have a very cheap VPS with the IP 123.123.123.123 which listens on these ports: 7000, 7001, ... 7020. Apache listens on port 7010. Then I can access my website with http://123.123.123.123:7010.As this is a shared IP, I cannot listen on port 80 myself with my VPS: I only have access to 7000 ... 7020.I have registered a domain mydomain1.com by a domain provider and I'm using their nameservers.How to set up the DNS records such that any user going on http://www.mydomain1.com will be transparantly directed to my website, with Apache ? (the browser will probably default to ...

How to add SSL_RSA to SSLCipherSuite?

Really hope for some help in my problem with SSLCipherSuite... So i have this kind of virtualhost config:<VirtualHost *:443>DocumentRoot /home/webz/site.comServerName site.comServerAlias www.site.comSSLProtocol -all +TLSv1.1 +TLSv1.2SSLHonorCipherOrder onSSLCipherSuite "kEDH:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-SHA256:EECDH+ECDSA+AESGCM:EECDH+aRSA+AESGCM:EECDH+ECDSA+SHA384:EECDH+ECDSA+SHA256:EECDH+aRSA+SHA384:EECDH+aRSA+SHA2...

Set HSTS header in htaccess if already isn't present

I've set HSTS in a common .htaccess which is being used by multiple sites.Header set Strict-Transport-Security "max-age=31536000" env=HTTPSBut when a site has already set HSTS header from the virtual host configuration, then there happens to be two HSTS header added to the response.So before I set HSTS on .htaccess, how do I check if an HSTS header is already present? It's ok with Header set. There would be a problem if you had used Header add. add : The response header is added to the existing set of headers, even if this header already exists. This can result in ...

Plesk VPS - Redirect invalid subdomain requests to www.domain.com

I have a Plesk VPS with several hundred domains. Most have the same IP.If a user goes to an invalid sub domain, they are always redirected to the 1st domain I setup. How can I force invalid subdomain requests such as xyz.domain.com to redirect to www.domain.com either via htaccess or DNS ? Below is the htaccess rule you should place in htaccess file for you domain "domain.com # Check for invalid subdomainRewriteCond %{HTTP_HOST} !^(www\.)?yourdomain.com$RewriteRule ^(.*)$ http://www.yourdomain.com/$1 [L,QSA,R=301] [XXX]It's can be done via .htaccess because invalid su...

Page 1 of 115  |  Show More Pages:  Top Prev Next Last